summaryrefslogtreecommitdiff
path: root/src/fl_rect.cxx
diff options
context:
space:
mode:
authorMatthias Melcher <fltk@matthiasm.com>2016-01-21 16:38:14 +0000
committerMatthias Melcher <fltk@matthiasm.com>2016-01-21 16:38:14 +0000
commit42845966d1502bae8c24bf35aff1dcf11a1e058d (patch)
tree152b7f1a40727ed098a1fe74b2c50a2ad51bf820 /src/fl_rect.cxx
parent5ff6efd52913ba1d3ec6f22bc61e416a26e70361 (diff)
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
Diffstat (limited to 'src/fl_rect.cxx')
-rw-r--r--src/fl_rect.cxx5
1 files changed, 5 insertions, 0 deletions
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