Permalink
Browse files

imageattributes.c: Re-fix alpha.

svn path=/trunk/libgdiplus/; revision=81428
  • Loading branch information...
1 parent 02316fe commit 47e4cb5837791274b0396216943e5be3abe3463b Sebastien Pouliot committed Jul 5, 2007
Showing with 5 additions and 1 deletion.
  1. +4 −0 src/ChangeLog
  2. +1 −1 src/imageattributes.c
View
4 src/ChangeLog
@@ -1,3 +1,7 @@
+2007-07-05 Sebastien Pouliot <sebastien@ximian.com>
+
+ * imageattributes.c: Re-fix alpha.
+
2007-07-03 Sebastien Pouliot <sebastien@ximian.com>
* graphics-path.c: Add missing checks in GdipGetPath[Types|Points]
View
2 src/imageattributes.c
@@ -252,7 +252,7 @@ gdip_process_bitmap_attributes (GpBitmap *bitmap, void **dest, GpImageAttributes
/* 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];

0 comments on commit 47e4cb5

Please sign in to comment.