[hafqa] [hafqa] [Bug 1216] sapwood breaks when images have an alpha channel

From: bugzilla-daemon at maemo.org bugzilla-daemon at maemo.org
Date: Wed Apr 18 18:56:57 EEST 2007
https://maemo.org/bugzilla/show_bug.cgi?id=1216


tommi.komulainen at nokia.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED




------- Additional Comments From tommi.komulainen at nokia.com  2007-04-18 18:56 -------
Will be fixed in sapwood (2.91.4-1)

I changed the patch a bit to set the fill color using RGB values which should be
more reliable than relying on the pixel value.

@@ -89,8 +94,15 @@ extract_pixmap_single (GdkPixbuf  *pixbuf,
   pixmap = gdk_pixmap_new (NULL, width, height, server_depth);

   if (!tmp_gc)
-    tmp_gc = gdk_gc_new (pixmap);
+    {
+      const GdkColor white = {0, 0xffff, 0xffff, 0xffff};
+
+      tmp_gc = gdk_gc_new (pixmap);
+
+      gdk_gc_set_rgb_fg_color (tmp_gc, &white);
+    }

+  gdk_draw_rectangle (pixmap, tmp_gc, TRUE, 0, 0, width, height);


-- 
Configure bugmail: https://maemo.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.

More information about the hafqa mailing list