Finally fixed my prob...

--Sven
This commit is contained in:
Sven Neumann 1999-05-10 17:08:33 +00:00
parent 0a7c237708
commit 7a6034954d
2 changed files with 8 additions and 4 deletions

View File

@ -1,3 +1,7 @@
Mon May 10 18:59:58 MEST 1999 Sven Neumann <sven@gimp.org>
* modules/colorsel_water.c: finally fixed my prob all by myself :)
Sun May 9 23:45:08 MEST 1999 Sven Neumann <sven@gimp.org> Sun May 9 23:45:08 MEST 1999 Sven Neumann <sven@gimp.org>
* modules/colorsel_water.c: Added a pressure slider. Still don't * modules/colorsel_water.c: Added a pressure slider. Still don't

View File

@ -53,7 +53,7 @@ static GimpModuleInfo info = {
"Raph Levien <raph@acm.org>, Sven Neumann <sven@gimp.org>", "Raph Levien <raph@acm.org>, Sven Neumann <sven@gimp.org>",
"v0.3", "v0.3",
"(c) 1998-1999, released under the GPL", "(c) 1998-1999, released under the GPL",
"May, 09 1999" "May, 10 1999"
}; };
@ -152,9 +152,9 @@ draw_bucket (gint i)
#ifdef VERBOSE #ifdef VERBOSE
g_print ("draw_bucket %d\n", i); g_print ("draw_bucket %d\n", i);
#endif #endif
width = GTK_WIDGET(color_preview[i])->allocation.width; width = (i == 0 ? PREVIEW_SIZE : BUCKET_SIZE);
height = GTK_WIDGET(color_preview[i])->allocation.height; height = width;
buf = g_new (guchar, 3*width); buf = g_new (guchar, 3*width);
r = bucket_to_byte (bucket[i][0]); r = bucket_to_byte (bucket[i][0]);