diff options
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.cxx | 22 |
2 files changed, 13 insertions, 11 deletions
diff --git a/src/drivers/GDI/Fl_GDI_Graphics_Driver.H b/src/drivers/GDI/Fl_GDI_Graphics_Driver.H index bbda02bc2..9cd79ebaa 100644 --- a/src/drivers/GDI/Fl_GDI_Graphics_Driver.H +++ b/src/drivers/GDI/Fl_GDI_Graphics_Driver.H @@ -129,6 +129,8 @@ protected: void color(uchar r, uchar g, uchar b); void set_spot(int font, int size, int X, int Y, int W, int H, Fl_Window *win); void reset_spot(); +protected: + void global_gc(); }; diff --git a/src/drivers/GDI/Fl_GDI_Graphics_Driver.cxx b/src/drivers/GDI/Fl_GDI_Graphics_Driver.cxx index 817c7e154..f208b979f 100644 --- a/src/drivers/GDI/Fl_GDI_Graphics_Driver.cxx +++ b/src/drivers/GDI/Fl_GDI_Graphics_Driver.cxx @@ -23,17 +23,6 @@ #include <FL/x.H> -/* Reference to the current device context - For back-compatibility only. The preferred procedure to get this reference is - Fl_Surface_Device::surface()->driver()->gc(). - */ -HDC fl_gc = 0; - -void Fl_Graphics_Driver::global_gc() -{ - fl_gc = (HDC)gc(); -} - /* * By linking this module, the following static method will instantiate the * MSWindows GDI Graphics driver as the main display driver. @@ -52,6 +41,17 @@ typedef BOOL (WINAPI* fl_alpha_blend_func) static fl_alpha_blend_func fl_alpha_blend = NULL; static FL_BLENDFUNCTION blendfunc = { 0, 0, 255, 1}; +/* Reference to the current device context + For back-compatibility only. The preferred procedure to get this reference is + Fl_Surface_Device::surface()->driver()->gc(). + */ +HDC fl_gc = 0; + +void Fl_GDI_Graphics_Driver::global_gc() +{ + fl_gc = (HDC)gc(); +} + /* * This function checks if the version of MSWindows that we * curently run on supports alpha blending for bitmap transfers |
