Author: AlbrechtS
Date: 2009-08-24 12:55:29 -0700 (Mon, 24 Aug 2009)
New Revision: 6844
Log:
Fixed Windows compile bug with "#define USE_COLORMAP 0" (STR #2241)


Modified:
   branches/branch-1.3/CHANGES
   branches/branch-1.3/src/fl_draw_image_win32.cxx

Modified: branches/branch-1.3/CHANGES
===================================================================
--- branches/branch-1.3/CHANGES 2009-08-24 19:53:06 UTC (rev 6843)
+++ branches/branch-1.3/CHANGES 2009-08-24 19:55:29 UTC (rev 6844)
@@ -1,5 +1,7 @@
 CHANGES IN FLTK 1.3.0
 
+       - Fixed Windows compile bug with "#define USE_COLORMAP 0"
+         (STR #2241)
        - Fixed glibc 2.10 compiler problems (Fedora 11 and others)
          with scandir() and strchr() (STR #2222)
        - Corrected const methods of Fl_Text_{Buffer|Display|Selection}

Modified: branches/branch-1.3/src/fl_draw_image_win32.cxx
===================================================================
--- branches/branch-1.3/src/fl_draw_image_win32.cxx     2009-08-24 19:53:06 UTC 
(rev 6843)
+++ branches/branch-1.3/src/fl_draw_image_win32.cxx     2009-08-24 19:55:29 UTC 
(rev 6844)
@@ -115,8 +115,10 @@
                    int delta, int linedelta, int depth,
                    Fl_Draw_Image_Cb cb, void* userdata)
 {
+  char indexed = 0;
+
 #if USE_COLORMAP
-  char indexed = (fl_palette != 0);
+  indexed = (fl_palette != 0);
 #endif
 
   if (depth==0) depth = 3;

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

Reply via email to