From 2394271e17653ce366de136e45d7af70199120e7 Mon Sep 17 00:00:00 2001 From: Sven Neumann Date: Wed, 20 Nov 2002 10:45:29 +0000 Subject: [PATCH] make it compile --- ChangeLog | 12 ++++++++---- plug-ins/maze/algorithms.c | 2 +- plug-ins/maze/maze.c | 2 +- plug-ins/maze/maze.h | 2 +- 4 files changed, 11 insertions(+), 7 deletions(-) diff --git a/ChangeLog b/ChangeLog index 83359c5d07..5641ad3902 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2002-11-19 Sven Neumann + + * plug-ins/maze/maze.[ch] + * plug-ins/algorithms.c: make it compile. I'm not sure if this is the + correct fix though... + 2002-11-20 Dave Neary * configure.in @@ -35,14 +41,12 @@ * plug-ins/flame/flame.c * plug-ins/flame/libifs.c * plug-ins/gflare/gflare.c - * plug-ins/gimpressionist/gimpressionist.c - * plug-ins/gimpressionist/gimpressionist.h + * plug-ins/gimpressionist/gimpressionist.[ch] * plug-ins/gimpressionist/plasma.c * plug-ins/gimpressionist/repaint.c * plug-ins/ifscompose/ifscompose_utils.c * plug-ins/maze/algorithms.c - * plug-ins/maze/maze.c - * plug-ins/maze/maze.h + * plug-ins/maze/maze.[ch] * plug-ins/mosaic/mosaic.c: Change all occurrences of RAND_MAX, G_MAXRAND, rand(), srand(), lrand48(), srand48(), random(), srandom(), RAND_FUNC and SRAND_FUNC to the appropriate g_rand* diff --git a/plug-ins/maze/algorithms.c b/plug-ins/maze/algorithms.c index 3609c2d177..1af5cac34d 100644 --- a/plug-ins/maze/algorithms.c +++ b/plug-ins/maze/algorithms.c @@ -463,7 +463,7 @@ prim_tileable(gchar *maz, guint x, guint y) max_progress=x*y/4; /* Pick someplace to start. */ - if (!mvals.defaultseed) + if (!mvals.timeseed) g_rand_set_seed (gr, rnd); pos = x * 2 * g_rand_int_range (gr, 0, y/2) + 2 * g_rand_int_range(gr, 0, x/2); diff --git a/plug-ins/maze/maze.c b/plug-ins/maze/maze.c index fd0638d705..ffb4b6c5d7 100644 --- a/plug-ins/maze/maze.c +++ b/plug-ins/maze/maze.c @@ -246,7 +246,7 @@ run (gchar *name, gimp_displays_flush (); if (run_mode == GIMP_RUN_INTERACTIVE || - (mvals.defaultseed && run_mode == GIMP_RUN_WITH_LAST_VALS)) + (mvals.timeseed && run_mode == GIMP_RUN_WITH_LAST_VALS)) gimp_set_data ("plug_in_maze", &mvals, sizeof (MazeValues)); } else diff --git a/plug-ins/maze/maze.h b/plug-ins/maze/maze.h index 693911567e..d0694461f7 100644 --- a/plug-ins/maze/maze.h +++ b/plug-ins/maze/maze.h @@ -33,7 +33,7 @@ typedef struct { gint offset; MazeAlgoType algorithm; /* Interface options. */ - gboolean defaultseed; + gboolean timeseed; } MazeValues; enum CellTypes {