diff options
| author | Matthias Melcher <fltk@matthiasm.com> | 2016-04-17 15:01:20 +0000 |
|---|---|---|
| committer | Matthias Melcher <fltk@matthiasm.com> | 2016-04-17 15:01:20 +0000 |
| commit | c9d3eabf4e201384a930707fbe1b8a01771f5e3d (patch) | |
| tree | fc9c2a47341ad484ebe787a8cf6524ac8b62ceaf /src/drivers/GDI | |
| parent | 9ae4a99081237f94d47a480d41313dc65737bd98 (diff) | |
virtualized Fl::set_color and free_color.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11642 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/drivers/GDI')
| -rw-r--r-- | src/drivers/GDI/Fl_GDI_Graphics_Driver.H | 2 | ||||
| -rw-r--r-- | src/drivers/GDI/Fl_GDI_Graphics_Driver_color.cxx | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/drivers/GDI/Fl_GDI_Graphics_Driver.H b/src/drivers/GDI/Fl_GDI_Graphics_Driver.H index 9cd79ebaa..fa5b517e3 100644 --- a/src/drivers/GDI/Fl_GDI_Graphics_Driver.H +++ b/src/drivers/GDI/Fl_GDI_Graphics_Driver.H @@ -127,6 +127,8 @@ protected: void color(Fl_Color c); Fl_Color color() { return color_; } void color(uchar r, uchar g, uchar b); + void set_color(Fl_Color i, unsigned int c); + void free_color(Fl_Color i, int overlay); void set_spot(int font, int size, int X, int Y, int W, int H, Fl_Window *win); void reset_spot(); protected: diff --git a/src/drivers/GDI/Fl_GDI_Graphics_Driver_color.cxx b/src/drivers/GDI/Fl_GDI_Graphics_Driver_color.cxx index c32bbd8cb..a985250ed 100644 --- a/src/drivers/GDI/Fl_GDI_Graphics_Driver_color.cxx +++ b/src/drivers/GDI/Fl_GDI_Graphics_Driver_color.cxx @@ -185,12 +185,12 @@ CREATE_BRUSH: return brushes[i].brush; } -void Fl::free_color(Fl_Color i, int overlay) { +void Fl_GDI_Graphics_Driver::free_color(Fl_Color i, int overlay) { if (overlay) return; // do something about GL overlay? clear_xmap(fl_xmap[i]); } -void Fl::set_color(Fl_Color i, unsigned c) { +void Fl_GDI_Graphics_Driver::set_color(Fl_Color i, unsigned c) { if (fl_cmap[i] != c) { clear_xmap(fl_xmap[i]); fl_cmap[i] = c; |
