diff options
| author | Albrecht Schlosser <albrechts.fltk@online.de> | 2009-08-24 19:55:29 +0000 |
|---|---|---|
| committer | Albrecht Schlosser <albrechts.fltk@online.de> | 2009-08-24 19:55:29 +0000 |
| commit | 2cf1337c44337e54edc58190b83a76277853eb37 (patch) | |
| tree | 986228a1fa8f7122dbe2beb94020ac4389fc4534 | |
| parent | 5e21c7ce233da01593263b03ff237bccc1b3eda1 (diff) | |
Fixed Windows compile bug with "#define USE_COLORMAP 0" (STR #2241)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6844 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
| -rw-r--r-- | CHANGES | 2 | ||||
| -rw-r--r-- | src/fl_draw_image_win32.cxx | 4 |
2 files changed, 5 insertions, 1 deletions
@@ -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} diff --git a/src/fl_draw_image_win32.cxx b/src/fl_draw_image_win32.cxx index d43f90e6c..a881eb1cf 100644 --- a/src/fl_draw_image_win32.cxx +++ b/src/fl_draw_image_win32.cxx @@ -115,8 +115,10 @@ static void innards(const uchar *buf, int X, int Y, int W, int H, 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; |
