From 42845966d1502bae8c24bf35aff1dcf11a1e058d Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Thu, 21 Jan 2016 16:38:14 +0000 Subject: Removed OpenGL graphics driver from public view. For the parts that are implemented, it will 'just work' by allowing fl_* rendering into OpenGL contexts (such as widgets, etc.) git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11022 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/fl_rect.cxx | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/fl_rect.cxx') diff --git a/src/fl_rect.cxx b/src/fl_rect.cxx index 060e2600c..5ad2c9e5e 100644 --- a/src/fl_rect.cxx +++ b/src/fl_rect.cxx @@ -50,6 +50,7 @@ void Fl_Graphics_Driver::restore_clip() { fl_clip_state_number++; } + void Fl_Graphics_Driver::clip_region(Fl_Region r) { Fl_Region oldr = rstack[rstackptr]; if (oldr) XDestroyRegion(oldr); @@ -57,6 +58,7 @@ void Fl_Graphics_Driver::clip_region(Fl_Region r) { fl_restore_clip(); } + Fl_Region Fl_Graphics_Driver::clip_region() { return rstack[rstackptr]; } @@ -87,14 +89,17 @@ Fl_Region Fl_Graphics_Driver::clip_region() { //////////////////////////////////////////////////////////////// + #ifdef FL_CFG_GFX_QUARTZ # include "cfg_gfx/quartz_rect.cxx" #endif + // ----------------------------------------------------------------------------- + #ifdef FL_CFG_GFX_GDI // --- line and polygon drawing with integer coordinates -- cgit v1.2.3