diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/Fl_Native_File_Chooser_WIN32.cxx | 4 | ||||
| -rw-r--r-- | src/drivers/GDI/Fl_GDI_Graphics_Driver_color.cxx | 5 | ||||
| -rw-r--r-- | src/fl_color.cxx | 19 |
3 files changed, 17 insertions, 11 deletions
diff --git a/src/Fl_Native_File_Chooser_WIN32.cxx b/src/Fl_Native_File_Chooser_WIN32.cxx index 2f36635bc..560dc8002 100644 --- a/src/Fl_Native_File_Chooser_WIN32.cxx +++ b/src/Fl_Native_File_Chooser_WIN32.cxx @@ -29,8 +29,8 @@ #define _binf_ptr (&_binf) #endif -# include <stdlib.h> // malloc -# include <stdio.h> // sprintf +#include <stdlib.h> // malloc +#include <stdio.h> // sprintf #include <wchar.h> #include "Fl_Native_File_Chooser_common.cxx" // strnew/strfree/strapp/chrcat diff --git a/src/drivers/GDI/Fl_GDI_Graphics_Driver_color.cxx b/src/drivers/GDI/Fl_GDI_Graphics_Driver_color.cxx index 24744a927..4991c9ccd 100644 --- a/src/drivers/GDI/Fl_GDI_Graphics_Driver_color.cxx +++ b/src/drivers/GDI/Fl_GDI_Graphics_Driver_color.cxx @@ -33,6 +33,9 @@ // to co-exist, creating conflicts with multipe mapping. // FIXME: maybe we can forget about color mapping and assume RGB? +//static unsigned fl_cmap[256] = { +//#include "../../fl_cmap.h" // this is a file produced by "cmap.cxx": +//}; // Translations to win32 data structures: Fl_XMap fl_xmap[256]; @@ -150,7 +153,7 @@ HBRUSH fl_brush_action(int action) { for (int j=0; j<FL_N_BRUSH; j++) { if (brushes[j].usage>16000) brushes[j].usage -= 16000; - else + else brushes[j].usage = 0; } } diff --git a/src/fl_color.cxx b/src/fl_color.cxx index bf448b6d3..d98db309e 100644 --- a/src/fl_color.cxx +++ b/src/fl_color.cxx @@ -29,6 +29,17 @@ #include <config.h> #include "config_lib.h" +// fl_cmap needs to be defined *before* we include Fl_GDI_Graphics_Driver_color.cxx + +/** \addtogroup fl_attributes + @{ */ + +/* static */ +unsigned fl_cmap[256] = { +#include "fl_cmap.h" // this is a file produced by "cmap.cxx": +}; + + // Remove #ifndef FL_LIBRARY_CMAKE and the entire block of #include // statements when the new build system is ready: #ifndef FL_LIBRARY_CMAKE @@ -60,14 +71,6 @@ // ----------------------------------------------------------------------------- -/** \addtogroup fl_attributes - @{ */ - -/* static */ -unsigned fl_cmap[256] = { -#include "fl_cmap.h" // this is a file produced by "cmap.cxx": -}; - /** Returns the RGB value(s) for the given FLTK color index. |
