Commit 5ebbc4d6 authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann
Browse files

corrected dither offset.

2004-08-07  Sven Neumann  <sven@gimp.org>

	* libgimp/gimpgradientmenu.c (gimp_gradient_select_preview_expose):
	corrected dither offset.
parent 4b7c4edb
2004-08-07 Sven Neumann <sven@gimp.org>
* libgimp/gimpgradientmenu.c (gimp_gradient_select_preview_expose):
corrected dither offset.
2004-08-07 DindinX <david@dindinx.org>
* plug-ins/common/max_rgb.c: use a GimpPreviewArea instead of
......
......@@ -284,8 +284,6 @@ gimp_gradient_select_preview_expose (GtkWidget *widget,
GradientSelect *gradient_sel)
{
const gdouble *src;
gdouble r, g, b, a;
gdouble c0, c1;
guchar *p0;
guchar *p1;
guchar *even;
......@@ -299,6 +297,9 @@ gimp_gradient_select_preview_expose (GtkWidget *widget,
for (x = 0; x < gradient_sel->width; x++)
{
gdouble r, g, b, a;
gdouble c0, c1;
r = src[x * 4 + 0];
g = src[x * 4 + 1];
b = src[x * 4 + 2];
......@@ -335,7 +336,7 @@ gimp_gradient_select_preview_expose (GtkWidget *widget,
GDK_RGB_DITHER_MAX,
buf + event->area.x,
gradient_sel->width * 3,
- event->area.x, - event->area.y);
- event->area.x, - y);
}
g_free (odd);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment