From f9fec0cda70ab6095f22332941142dc7853f946a Mon Sep 17 00:00:00 2001 From: Sven Neumann Date: Wed, 11 Jun 2003 00:46:59 +0000 Subject: [PATCH] fixed my latest fix. Fixes bug #114882. 2003-06-11 Sven Neumann * app/paint-funcs/paint-funcs-generic.h (blend_pixels): fixed my latest fix. Fixes bug #114882. --- ChangeLog | 5 +++++ app/paint-funcs/paint-funcs-generic.h | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index d0ed7c7f0e..4891d93661 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2003-06-11 Sven Neumann + + * app/paint-funcs/paint-funcs-generic.h (blend_pixels): fixed my + latest fix. Fixes bug #114882. + 2003-06-10 Sven Neumann * app/widgets/gimpwidgets-utils.[ch]: added utility function diff --git a/app/paint-funcs/paint-funcs-generic.h b/app/paint-funcs/paint-funcs-generic.h index 807feb13f2..1d28588ae8 100644 --- a/app/paint-funcs/paint-funcs-generic.h +++ b/app/paint-funcs/paint-funcs-generic.h @@ -172,9 +172,9 @@ blend_pixels (const guchar *src1, guint w, guint bytes) { - const guchar blend1 = (256 - blend); - const guchar blend2 = (blend + 1); - const guint c = bytes - 1; + const guint blend1 = 256 - blend; + const guint blend2 = blend + 1; + const guint c = bytes - 1; guint b; while (w--)