diff options
| author | Matthias Melcher <fltk@matthiasm.com> | 2016-04-17 14:45:25 +0000 |
|---|---|---|
| committer | Matthias Melcher <fltk@matthiasm.com> | 2016-04-17 14:45:25 +0000 |
| commit | 9ae4a99081237f94d47a480d41313dc65737bd98 (patch) | |
| tree | aefbe45f297640c084c2949ca3da2d936fef9a47 /src/drivers/Xlib | |
| parent | cc57af841a11ee314efca6a434ff14bed51706e4 (diff) | |
virtualized Fl_Graphics_Driver::global_gc(), a function that should probably not exeist.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11641 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/drivers/Xlib')
| -rw-r--r-- | src/drivers/Xlib/Fl_Xlib_Graphics_Driver.H | 2 | ||||
| -rw-r--r-- | src/drivers/Xlib/Fl_Xlib_Graphics_Driver.cxx | 20 |
2 files changed, 12 insertions, 10 deletions
diff --git a/src/drivers/Xlib/Fl_Xlib_Graphics_Driver.H b/src/drivers/Xlib/Fl_Xlib_Graphics_Driver.H index ff037c3e1..d207ae16a 100644 --- a/src/drivers/Xlib/Fl_Xlib_Graphics_Driver.H +++ b/src/drivers/Xlib/Fl_Xlib_Graphics_Driver.H @@ -131,6 +131,8 @@ protected: virtual float scale_bitmap_for_PostScript(); virtual void set_spot(int font, int size, int X, int Y, int W, int H, Fl_Window *win); virtual void reset_spot(); +protected: + virtual void global_gc(); }; diff --git a/src/drivers/Xlib/Fl_Xlib_Graphics_Driver.cxx b/src/drivers/Xlib/Fl_Xlib_Graphics_Driver.cxx index 717718cb4..2406468d2 100644 --- a/src/drivers/Xlib/Fl_Xlib_Graphics_Driver.cxx +++ b/src/drivers/Xlib/Fl_Xlib_Graphics_Driver.cxx @@ -28,16 +28,6 @@ #include <X11/extensions/Xrender.h> #endif -/* Reference to the current graphics context - For back-compatibility only. The preferred procedure to get this pointer is - Fl_Surface_Device::surface()->driver()->gc(). - */ -GC fl_gc = 0; - -void Fl_Graphics_Driver::global_gc() -{ -} - /* * By linking this module, the following static method will instantiate the @@ -50,6 +40,16 @@ Fl_Graphics_Driver *Fl_Graphics_Driver::newMainGraphicsDriver() GC Fl_Xlib_Graphics_Driver::gc_ = NULL; +/* Reference to the current graphics context + For back-compatibility only. The preferred procedure to get this pointer is + Fl_Surface_Device::surface()->driver()->gc(). + */ +GC fl_gc = 0; + +void Fl_Xlib_Graphics_Driver::global_gc() +{ +} + Fl_Xlib_Graphics_Driver::Fl_Xlib_Graphics_Driver(void) { mask_bitmap_ = NULL; p_size = 0; |
