summaryrefslogtreecommitdiff
path: root/gdk
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@behdad.org>2013-09-05 18:42:45 -0400
committerBehdad Esfahbod <behdad@behdad.org>2013-09-05 18:42:45 -0400
commit10601b833a530911673d3051078eb7b07412fc98 (patch)
tree5f7a271995260e51614095defb5c1daf7acc1aee /gdk
parent854f5818f8d7b97ead2af62bc474a59396082dd8 (diff)
downloadgtk+-10601b833a530911673d3051078eb7b07412fc98.tar.gz
[gdkcairo] Fix color premultiplication
https://bugzilla.gnome.org/show_bug.cgi?id=513812
Diffstat (limited to 'gdk')
-rw-r--r--gdk/gdkcairo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdk/gdkcairo.c b/gdk/gdkcairo.c
index 74bc63611a..67fc35acad 100644
--- a/gdk/gdkcairo.c
+++ b/gdk/gdkcairo.c
@@ -244,7 +244,7 @@ gdk_cairo_surface_create_from_pixbuf (const GdkPixbuf *pixbuf,
guchar *end = p + 4 * width;
guint t1,t2,t3;
-#define MULT(d,c,a,t) G_STMT_START { t = c * a + 0x7f; d = ((t >> 8) + t) >> 8; } G_STMT_END
+#define MULT(d,c,a,t) G_STMT_START { t = c * a + 0x80; d = ((t >> 8) + t) >> 8; } G_STMT_END
while (p < end)
{