Author: spouliot
Date: 2007-07-05 15:42:00 -0400 (Thu, 05 Jul 2007)
New Revision: 81428

Modified:
   trunk/libgdiplus/src/ChangeLog
   trunk/libgdiplus/src/imageattributes.c
Log:
imageattributes.c: Re-fix alpha.

Modified: trunk/libgdiplus/src/ChangeLog
===================================================================
--- trunk/libgdiplus/src/ChangeLog      2007-07-05 19:23:02 UTC (rev 81427)
+++ trunk/libgdiplus/src/ChangeLog      2007-07-05 19:42:00 UTC (rev 81428)
@@ -1,3 +1,7 @@
+2007-07-05  Sebastien Pouliot  <[EMAIL PROTECTED]>
+
+       * imageattributes.c: Re-fix alpha.
+
 2007-07-03  Sebastien Pouliot  <[EMAIL PROTECTED]>
 
        * graphics-path.c: Add missing checks in GdipGetPath[Types|Points]

Modified: trunk/libgdiplus/src/imageattributes.c
===================================================================
--- trunk/libgdiplus/src/imageattributes.c      2007-07-05 19:23:02 UTC (rev 
81427)
+++ trunk/libgdiplus/src/imageattributes.c      2007-07-05 19:42:00 UTC (rev 
81428)
@@ -252,7 +252,7 @@
 
                                        /* remember that Cairo use 
pre-multiplied alpha, e.g. 50% red == 0x80800000 not 0x80ff0000 */
                                        a = (BYTE) a_new;
-                                       if (a_new < 0xff) {
+                                       if (a < 0xff) {
                                                r = pre_multiplied_table [r][a];
                                                g = pre_multiplied_table [g][a];
                                                b = pre_multiplied_table [b][a];

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to