From d67f395031b0e9cfb266bf31a4a5e08a2d109e3b Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Wed, 30 Mar 2016 20:16:40 +0000 Subject: Rewrite functions XRectangleRegion(), XDestroyRegion() under the driver model. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11479 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- FL/Fl_Graphics_Driver.H | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'FL/Fl_Graphics_Driver.H') diff --git a/FL/Fl_Graphics_Driver.H b/FL/Fl_Graphics_Driver.H index 2ee75796a..c4bf7ec8d 100644 --- a/FL/Fl_Graphics_Driver.H +++ b/FL/Fl_Graphics_Driver.H @@ -240,8 +240,11 @@ public: virtual float scale_font_for_PostScript(Fl_Font_Descriptor *desc, int s) { return float(s); } // default implementation may be enough virtual float scale_bitmap_for_PostScript() { return 2; } - // each platform implements that its own way + // 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); + protected: // --- implementation is in src/fl_vertex.cxx which includes src/cfg_gfx/xxx_rect.cxx void global_gc(void); -- cgit v1.2.3