gimp r28024 - in branches/gimp-2-6: . app/paint-funcs



Author: neo
Date: Fri Feb 13 20:44:28 2009
New Revision: 28024
URL: http://svn.gnome.org/viewvc/gimp?rev=28024&view=rev

Log:
2009-02-13  Sven Neumann  <sven gimp org>

	Merged from trunk:

	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.



Modified:
   branches/gimp-2-6/ChangeLog
   branches/gimp-2-6/app/paint-funcs/scale-region.c

Modified: branches/gimp-2-6/app/paint-funcs/scale-region.c
==============================================================================
--- branches/gimp-2-6/app/paint-funcs/scale-region.c	(original)
+++ branches/gimp-2-6/app/paint-funcs/scale-region.c	Fri Feb 13 20:44:28 2009
@@ -856,7 +856,7 @@
             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;
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]