Author: akv
Date: 2010-10-24 23:30:46 +0200 (Sun, 24 Oct 2010)
New Revision: 3587
Modified:
trunk/src/gtk-helper.c
Log:
Fixing cairo_image_surface_create() - only create a pixbuf with alpha if the
cairo image has alpha.
Modified: trunk/src/gtk-helper.c
===================================================================
--- trunk/src/gtk-helper.c 2010-10-24 20:30:15 UTC (rev 3586)
+++ trunk/src/gtk-helper.c 2010-10-24 21:30:46 UTC (rev 3587)
@@ -519,7 +519,7 @@
srcstride = cairo_image_surface_get_stride (surface);
srcpixels = cairo_image_surface_get_data (surface);
- pixbuf = gdk_pixbuf_new (GDK_COLORSPACE_RGB, TRUE, 8,
+ pixbuf = gdk_pixbuf_new (GDK_COLORSPACE_RGB,
(cairo_image_surface_get_format (surface) == CAIRO_FORMAT_ARGB32), 8,
width, height);
dststride = gdk_pixbuf_get_rowstride (pixbuf);
dstpixels = gdk_pixbuf_get_pixels (pixbuf);
_______________________________________________
Rawstudio-commit mailing list
[email protected]
http://rawstudio.org/cgi-bin/mailman/listinfo/rawstudio-commit