From cdf85352c42dd2f3b43703897148e8fa513c9cdc Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Sun, 17 Apr 2016 15:36:23 +0000 Subject: 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 --- FL/Fl_Graphics_Driver.H | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'FL') 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 -- cgit v1.2.3