DO NOT REPLY TO THIS MESSAGE.  INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.

[STR New]

Link: http://www.fltk.org/str.php?L1961
Version: 2.0-current


Here's a patch for the fix:

Index: src/x11/readimage.cxx
===================================================================
--- src/x11/readimage.cxx       (revision 6129)
+++ src/x11/readimage.cxx       (working copy)
@@ -111,6 +111,13 @@
     }
   }
 
+  if (!image->red_mask && image->bits_per_pixel > 12) {
+    // Greater than 12 bits must be TrueColor...
+    image->red_mask   = xvisual->visual->red_mask;
+    image->green_mask   = xvisual->visual->green_mask;
+    image->blue_mask   = xvisual->visual->blue_mask;
+  }
+
   // Check if we have colormap image...
   if (image->red_mask == 0) {
     // Get the colormap entries for this window...


Link: http://www.fltk.org/str.php?L1961
Version: 2.0-current

_______________________________________________
fltk-bugs mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-bugs

Reply via email to