Commit fab84cac authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann

Bug 571628 – Scaling image to 25% turn background from white to grey

2009-02-13  Sven Neumann  <sven@gimp.org>

	Bug 571628 – Scaling image to 25% turn background from white to 
grey

	* app/paint-funcs/scale-region.c (pixel_average2): fixed 
right-shift
	for GRAYA pixels.


svn path=/trunk/; revision=28025
parent 4897f484
2009-02-13 Sven Neumann <sven@gimp.org>
Bug 571628 Scaling image to 25% turn background from white to grey
* app/paint-funcs/scale-region.c (pixel_average2): fixed right-shift
for GRAYA pixels.
2009-02-13 Michael Natterer <mitch@gimp.org>
* app/core/gimpdrawable.c (gimp_drawable_sync_source_node): need
......
......@@ -855,7 +855,7 @@ pixel_average2 (const guchar *p1,
break;
case 510: /* all opaque */
p[0] = (p1[0] + p2[0] + 1) >> 2;
p[0] = (p1[0] + p2[0] + 1) >> 1;
p[1] = 255;
break;
......
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