diff --git a/magic/magic-docs/en/html/index.html b/magic/magic-docs/en/html/index.html
index 6a39bf0ec..22296431b 100644
--- a/magic/magic-docs/en/html/index.html
+++ b/magic/magic-docs/en/html/index.html
@@ -66,6 +66,7 @@
Fretwork
Grass
Light
+Maze
Metal Paint
Pixels
Rails
diff --git a/magic/magic-docs/en/html/maze.html b/magic/magic-docs/en/html/maze.html
new file mode 100644
index 000000000..7c37d610e
--- /dev/null
+++ b/magic/magic-docs/en/html/maze.html
@@ -0,0 +1,13 @@
+
+Tux Paint "Magic" Tool: Maze
+
+
+
+Tux Paint "Magic" Tool: Maze
+Group: Painting
+
+Click and drag to construct a maze on your picture.
+
+Tux Paint 0.9.29
+
\ No newline at end of file
diff --git a/magic/magic-docs/en/index.txt b/magic/magic-docs/en/index.txt
index 385fbb0fd..3b55474a0 100644
--- a/magic/magic-docs/en/index.txt
+++ b/magic/magic-docs/en/index.txt
@@ -62,6 +62,7 @@ Painting
* Fretwork
* Grass
* Light
+ * Maze
* Metal Paint
* Pixels
* Rails
diff --git a/magic/magic-docs/en/maze.txt b/magic/magic-docs/en/maze.txt
new file mode 100644
index 000000000..4daef6159
--- /dev/null
+++ b/magic/magic-docs/en/maze.txt
@@ -0,0 +1,11 @@
+ Tux Paint "Magic" Tool: Maze
+
+ Group: Painting
+
+ Author: Bill Kendrick
+
+ Click and drag to construct a maze on your picture.
+
+ ----------------------------------------------------------------------
+
+ Tux Paint 0.9.29
diff --git a/magic/magic-docs/es_ES.UTF-8/html/index.html b/magic/magic-docs/es_ES.UTF-8/html/index.html
index 58b92e283..79094427e 100644
--- a/magic/magic-docs/es_ES.UTF-8/html/index.html
+++ b/magic/magic-docs/es_ES.UTF-8/html/index.html
@@ -66,6 +66,7 @@
Fretwork
Grass
Light
+Maze
Metal Paint
Pixels
Rails
diff --git a/magic/magic-docs/es_ES.UTF-8/html/maze.html b/magic/magic-docs/es_ES.UTF-8/html/maze.html
new file mode 100644
index 000000000..7c37d610e
--- /dev/null
+++ b/magic/magic-docs/es_ES.UTF-8/html/maze.html
@@ -0,0 +1,13 @@
+
+Tux Paint "Magic" Tool: Maze
+
+
+
+Tux Paint "Magic" Tool: Maze
+Group: Painting
+
+Click and drag to construct a maze on your picture.
+
+Tux Paint 0.9.29
+
\ No newline at end of file
diff --git a/magic/magic-docs/es_ES.UTF-8/index.txt b/magic/magic-docs/es_ES.UTF-8/index.txt
index 5dc79a33a..0d57333e0 100644
--- a/magic/magic-docs/es_ES.UTF-8/index.txt
+++ b/magic/magic-docs/es_ES.UTF-8/index.txt
@@ -62,6 +62,7 @@ Painting
* Fretwork
* Grass
* Light
+ * Maze
* Metal Paint
* Pixels
* Rails
diff --git a/magic/magic-docs/es_ES.UTF-8/maze.txt b/magic/magic-docs/es_ES.UTF-8/maze.txt
new file mode 100644
index 000000000..4daef6159
--- /dev/null
+++ b/magic/magic-docs/es_ES.UTF-8/maze.txt
@@ -0,0 +1,11 @@
+ Tux Paint "Magic" Tool: Maze
+
+ Group: Painting
+
+ Author: Bill Kendrick
+
+ Click and drag to construct a maze on your picture.
+
+ ----------------------------------------------------------------------
+
+ Tux Paint 0.9.29
diff --git a/magic/magic-docs/fr_FR.UTF-8/html/index.html b/magic/magic-docs/fr_FR.UTF-8/html/index.html
index 66ca7a388..a849fcbfd 100644
--- a/magic/magic-docs/fr_FR.UTF-8/html/index.html
+++ b/magic/magic-docs/fr_FR.UTF-8/html/index.html
@@ -68,6 +68,7 @@
Frise
Herbe
Lumière
+Maze
Mousse
Peinture métallique
Pixels
diff --git a/magic/magic-docs/fr_FR.UTF-8/html/maze.html b/magic/magic-docs/fr_FR.UTF-8/html/maze.html
new file mode 100644
index 000000000..7c37d610e
--- /dev/null
+++ b/magic/magic-docs/fr_FR.UTF-8/html/maze.html
@@ -0,0 +1,13 @@
+
+Tux Paint "Magic" Tool: Maze
+
+
+
+Tux Paint "Magic" Tool: Maze
+Group: Painting
+
+Click and drag to construct a maze on your picture.
+
+Tux Paint 0.9.29
+
\ No newline at end of file
diff --git a/magic/magic-docs/fr_FR.UTF-8/index.txt b/magic/magic-docs/fr_FR.UTF-8/index.txt
index 08c415732..5fc5d23ce 100644
--- a/magic/magic-docs/fr_FR.UTF-8/index.txt
+++ b/magic/magic-docs/fr_FR.UTF-8/index.txt
@@ -64,6 +64,7 @@ Painting
* Frise
* Herbe
* Lumière
+ * Maze
* Mousse
* Peinture métallique
* Pixels
diff --git a/magic/magic-docs/fr_FR.UTF-8/maze.txt b/magic/magic-docs/fr_FR.UTF-8/maze.txt
new file mode 100644
index 000000000..4daef6159
--- /dev/null
+++ b/magic/magic-docs/fr_FR.UTF-8/maze.txt
@@ -0,0 +1,11 @@
+ Tux Paint "Magic" Tool: Maze
+
+ Group: Painting
+
+ Author: Bill Kendrick
+
+ Click and drag to construct a maze on your picture.
+
+ ----------------------------------------------------------------------
+
+ Tux Paint 0.9.29
diff --git a/magic/magic-docs/gl_ES.UTF-8/html/index.html b/magic/magic-docs/gl_ES.UTF-8/html/index.html
index 58b92e283..79094427e 100644
--- a/magic/magic-docs/gl_ES.UTF-8/html/index.html
+++ b/magic/magic-docs/gl_ES.UTF-8/html/index.html
@@ -66,6 +66,7 @@
Fretwork
Grass
Light
+Maze
Metal Paint
Pixels
Rails
diff --git a/magic/magic-docs/gl_ES.UTF-8/html/maze.html b/magic/magic-docs/gl_ES.UTF-8/html/maze.html
new file mode 100644
index 000000000..7c37d610e
--- /dev/null
+++ b/magic/magic-docs/gl_ES.UTF-8/html/maze.html
@@ -0,0 +1,13 @@
+
+Tux Paint "Magic" Tool: Maze
+
+
+
+Tux Paint "Magic" Tool: Maze
+Group: Painting
+
+Click and drag to construct a maze on your picture.
+
+Tux Paint 0.9.29
+
\ No newline at end of file
diff --git a/magic/magic-docs/gl_ES.UTF-8/index.txt b/magic/magic-docs/gl_ES.UTF-8/index.txt
index 5dc79a33a..0d57333e0 100644
--- a/magic/magic-docs/gl_ES.UTF-8/index.txt
+++ b/magic/magic-docs/gl_ES.UTF-8/index.txt
@@ -62,6 +62,7 @@ Painting
* Fretwork
* Grass
* Light
+ * Maze
* Metal Paint
* Pixels
* Rails
diff --git a/magic/magic-docs/gl_ES.UTF-8/maze.txt b/magic/magic-docs/gl_ES.UTF-8/maze.txt
new file mode 100644
index 000000000..4daef6159
--- /dev/null
+++ b/magic/magic-docs/gl_ES.UTF-8/maze.txt
@@ -0,0 +1,11 @@
+ Tux Paint "Magic" Tool: Maze
+
+ Group: Painting
+
+ Author: Bill Kendrick
+
+ Click and drag to construct a maze on your picture.
+
+ ----------------------------------------------------------------------
+
+ Tux Paint 0.9.29
diff --git a/magic/magic-docs/ja_JP.UTF-8/html/index.html b/magic/magic-docs/ja_JP.UTF-8/html/index.html
index 6a39bf0ec..22296431b 100644
--- a/magic/magic-docs/ja_JP.UTF-8/html/index.html
+++ b/magic/magic-docs/ja_JP.UTF-8/html/index.html
@@ -66,6 +66,7 @@
Fretwork
Grass
Light
+Maze
Metal Paint
Pixels
Rails
diff --git a/magic/magic-docs/ja_JP.UTF-8/html/maze.html b/magic/magic-docs/ja_JP.UTF-8/html/maze.html
new file mode 100644
index 000000000..7c37d610e
--- /dev/null
+++ b/magic/magic-docs/ja_JP.UTF-8/html/maze.html
@@ -0,0 +1,13 @@
+
+Tux Paint "Magic" Tool: Maze
+
+
+
+Tux Paint "Magic" Tool: Maze
+Group: Painting
+
+Click and drag to construct a maze on your picture.
+
+Tux Paint 0.9.29
+
\ No newline at end of file
diff --git a/magic/magic-docs/ja_JP.UTF-8/index.txt b/magic/magic-docs/ja_JP.UTF-8/index.txt
index 385fbb0fd..3b55474a0 100644
--- a/magic/magic-docs/ja_JP.UTF-8/index.txt
+++ b/magic/magic-docs/ja_JP.UTF-8/index.txt
@@ -62,6 +62,7 @@ Painting
* Fretwork
* Grass
* Light
+ * Maze
* Metal Paint
* Pixels
* Rails
diff --git a/magic/magic-docs/ja_JP.UTF-8/maze.txt b/magic/magic-docs/ja_JP.UTF-8/maze.txt
new file mode 100644
index 000000000..4daef6159
--- /dev/null
+++ b/magic/magic-docs/ja_JP.UTF-8/maze.txt
@@ -0,0 +1,11 @@
+ Tux Paint "Magic" Tool: Maze
+
+ Group: Painting
+
+ Author: Bill Kendrick
+
+ Click and drag to construct a maze on your picture.
+
+ ----------------------------------------------------------------------
+
+ Tux Paint 0.9.29
diff --git a/magic/src/maze.c b/magic/src/maze.c
index ab18fdcd7..92623afe0 100644
--- a/magic/src/maze.c
+++ b/magic/src/maze.c
@@ -135,7 +135,7 @@ int maze_requires_colors(magic_api * api ATTRIBUTE_UNUSED,
int maze_modes(magic_api * api ATTRIBUTE_UNUSED,
int which ATTRIBUTE_UNUSED)
{
- return MODE_PAINT /* | MODE_FULLSCREEN FIXME */;
+ return MODE_PAINT | MODE_FULLSCREEN;
}
void maze_shutdown(magic_api * api ATTRIBUTE_UNUSED)
@@ -177,7 +177,17 @@ maze_click(magic_api * api, int which, int mode,
if (mode == MODE_PAINT) {
maze_drag(api, which, canvas, snapshot, x, y, x, y, update_rect);
} else {
- /* FIXME */
+ Uint32 color;
+
+ memset(maze_mask, 1, (canvas->w * canvas->h));
+
+ color = SDL_MapRGB(canvas->format, maze_r, maze_g, maze_b);
+// memset(maze_color, color, (sizeof(Uint32) * (canvas->w * canvas->h))); // FIXME: Why doesn't this work? -bjk 2023.01.21
+ for (y = 0; y < canvas->h; y++)
+ for (x = 0; x < canvas->w; x++)
+ maze_color[y * canvas->w + x] = color;
+
+ maze_release(api, which, canvas, snapshot, x, y, update_rect);
}
}
@@ -282,7 +292,6 @@ maze_release(magic_api * api, int which ATTRIBUTE_UNUSED,
iter++;
}
while (state != STATE_DONE && iter < 10000);
-if (iter >= 10000) printf("OUCH\n");
/* Draw the maze onto the canvas */
for (y = 0; y < canvas->h; y++) {