fixed gimp_dialog_new invocation. Also fixed a blatant error in the

2004-02-19  Simon Budig  <simon@gimp.org>

	* plug-ins/common/lic.c: fixed gimp_dialog_new invocation.
	Also fixed a blatant error in the algorithm (GimpRGB has a
	range from 0..1 for each component...) and now the plugin
	actually does something useful.
This commit is contained in:
Simon Budig 2004-02-19 15:04:28 +00:00 committed by Simon Budig
parent 7b7b978e8f
commit b60050534c
2 changed files with 14 additions and 6 deletions

View File

@ -1,3 +1,10 @@
2004-02-19 Simon Budig <simon@gimp.org>
* plug-ins/common/lic.c: fixed gimp_dialog_new invocation.
Also fixed a blatant error in the algorithm (GimpRGB has a
range from 0..1 for each component...) and now the plugin
actually does something useful.
2004-02-19 Sven Neumann <sven@gimp.org>
* app/tools/gimpcurvestool.c (gimp_curves_tool_dialog): follow

View File

@ -59,6 +59,8 @@
#define stepx 0.5
#define stepy 0.5
#define HELP_ID "plug-in-lic"
#define TILE_CACHE_SIZE 16
/*****************************/
@ -528,9 +530,10 @@ rgb_to_hsl (GimpDrawable *image,
{
gimp_pixel_rgn_get_pixel (&region, data, x, y);
color.r = data[0];
color.g = data[1];
color.b = data[2];
color.r = ((gdouble) data[0]) / 255.0;
color.g = ((gdouble) data[1]) / 255.0;
color.b = ((gdouble) data[2]) / 255.0;
color.a = 1.0;
val = hsl_func (&color);
@ -704,9 +707,7 @@ create_main_dialog (void)
dialog = gimp_dialog_new (_("Van Gogh (LIC)"), "lic",
NULL, 0,
gimp_standard_help_func, "plug-in-lic",
GTK_WIN_POS_MOUSE,
FALSE, TRUE, FALSE,
gimp_standard_help_func, HELP_ID,
GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
GTK_STOCK_OK, GTK_RESPONSE_OK,