Author: matt
Date: 2007-06-07 13:23:41 -0400 (Thu, 07 Jun 2007)
New Revision: 5888
Log:
Fixed rendering of grayscale images with alpha channel on unaccelerated 
machines. Thanks, Sanel (STR #1703)

Modified:
   branches/branch-1.1/CHANGES
   branches/branch-1.1/src/Fl_Image.cxx

Modified: branches/branch-1.1/CHANGES
===================================================================
--- branches/branch-1.1/CHANGES 2007-06-07 12:36:39 UTC (rev 5887)
+++ branches/branch-1.1/CHANGES 2007-06-07 17:23:41 UTC (rev 5888)
@@ -3,6 +3,8 @@
        - Documentation fixes (STR #1454, STR #1455, STR #1456,
          STR #1457, STR #1458, STR #1460, STR #1481, STR #1578,
          STR #1639, STR #1645, STR #1644)
+       - Fixed rendering of grayscale images with alpha
+         channel (STR #1703)
        - Fixed occasional incomplete refresh (STR #1681)
        - Improved fl_down, fl_frame, added fl_box (STR #1678)
        - Fixed selection of submenu items in 

Modified: branches/branch-1.1/src/Fl_Image.cxx
===================================================================
--- branches/branch-1.1/src/Fl_Image.cxx        2007-06-07 12:36:39 UTC (rev 
5887)
+++ branches/branch-1.1/src/Fl_Image.cxx        2007-06-07 17:23:41 UTC (rev 
5888)
@@ -344,7 +344,7 @@
     // Composite grayscale + alpha over RGB...
     // Composite RGBA over RGB...
     for (int y = H; y > 0; y--, srcptr+=srcskip)
-      for (int x = W; x > 0; x--, dstptr+=3) {
+      for (int x = W; x > 0; x--) {
        srcg = *srcptr++;
        srca = *srcptr++;
 

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

Reply via email to