diff options
author | Behdad Esfahbod <behdad@behdad.org> | 2013-09-05 18:42:45 -0400 |
---|---|---|
committer | Behdad Esfahbod <behdad@behdad.org> | 2013-09-05 18:42:45 -0400 |
commit | 10601b833a530911673d3051078eb7b07412fc98 (patch) | |
tree | 5f7a271995260e51614095defb5c1daf7acc1aee /gdk | |
parent | 854f5818f8d7b97ead2af62bc474a59396082dd8 (diff) | |
download | gtk+-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.c | 2 |
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) { |