diff options
| author | Matthias Melcher <fltk@matthiasm.com> | 2016-04-17 15:36:23 +0000 |
|---|---|---|
| committer | Matthias Melcher <fltk@matthiasm.com> | 2016-04-17 15:36:23 +0000 |
| commit | cdf85352c42dd2f3b43703897148e8fa513c9cdc (patch) | |
| tree | efdafdb13036cce810c6f648bb85c44854b86ff3 /FL/Fl_Graphics_Driver.H | |
| parent | c9d3eabf4e201384a930707fbe1b8a01771f5e3d (diff) | |
virtualized some Region calls.
There is a deeper issue here: regions should be handled by the graphics driver that is associated with the Fl_Window of this widget... .
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11643 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'FL/Fl_Graphics_Driver.H')
| -rw-r--r-- | FL/Fl_Graphics_Driver.H | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/FL/Fl_Graphics_Driver.H b/FL/Fl_Graphics_Driver.H index 08ef5694c..51859b5c1 100644 --- a/FL/Fl_Graphics_Driver.H +++ b/FL/Fl_Graphics_Driver.H @@ -114,6 +114,7 @@ protected: public: Fl_Graphics_Driver(); virtual ~Fl_Graphics_Driver() {} + static Fl_Graphics_Driver &default_driver(); virtual char can_do_alpha_blending() { return 0; } // --- implementation is in src/fl_rect.cxx which includes src/drivers/xxx/Fl_xxx_Graphics_Driver_rect.cxx virtual void point(int x, int y) = 0; @@ -245,9 +246,9 @@ public: virtual void set_spot(int font, int size, int X, int Y, int W, int H, Fl_Window *win); virtual void reset_spot(); // each platform implements these 3 functions its own way - static void add_rectangle_to_region(Fl_Region r, int x, int y, int w, int h); - static Fl_Region XRectangleRegion(int x, int y, int w, int h); - static void XDestroyRegion(Fl_Region r); + virtual void add_rectangle_to_region(Fl_Region r, int x, int y, int w, int h); + virtual Fl_Region XRectangleRegion(int x, int y, int w, int h); + virtual void XDestroyRegion(Fl_Region r); protected: // --- implementation is in src/fl_vertex.cxx which includes src/cfg_gfx/xxx_rect.cxx |
