summaryrefslogtreecommitdiff
path: root/src/drivers/Quartz/Fl_Quartz_Graphics_Driver_rect.cxx
diff options
context:
space:
mode:
authorMatthias Melcher <fltk@matthiasm.com>2016-01-27 22:35:58 +0000
committerMatthias Melcher <fltk@matthiasm.com>2016-01-27 22:35:58 +0000
commit780f43a4f14f56678c503fa279517c418b697877 (patch)
treefdb76e5f5b0b47ca652b497e5c096d60d0a67c54 /src/drivers/Quartz/Fl_Quartz_Graphics_Driver_rect.cxx
parent6177c23d901c8748fd908b3bd1106b403f017d7f (diff)
Removed all references to Quartz driver files from library headers in Xcode. Works in Xcode.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11065 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/drivers/Quartz/Fl_Quartz_Graphics_Driver_rect.cxx')
-rw-r--r--src/drivers/Quartz/Fl_Quartz_Graphics_Driver_rect.cxx14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/drivers/Quartz/Fl_Quartz_Graphics_Driver_rect.cxx b/src/drivers/Quartz/Fl_Quartz_Graphics_Driver_rect.cxx
index c4f3c9973..fed0a6a4c 100644
--- a/src/drivers/Quartz/Fl_Quartz_Graphics_Driver_rect.cxx
+++ b/src/drivers/Quartz/Fl_Quartz_Graphics_Driver_rect.cxx
@@ -17,8 +17,10 @@
//
-#ifndef FL_CFG_GFX_QUARTZ_RECT_CXX
-#define FL_CFG_GFX_QUARTZ_RECT_CXX
+#include "config_lib.h"
+#ifdef FL_CFG_GFX_QUARTZ
+
+#include <FL/Fl.H>
/**
@@ -210,7 +212,7 @@ void Fl_Quartz_Graphics_Driver::push_clip(int x, int y, int w, int h) {
}
if (rstackptr < region_stack_max) rstack[++rstackptr] = r;
else Fl::warning("Fl_Quartz_Graphics_Driver::push_clip: clip stack overflow!\n");
- fl_restore_clip();
+ restore_clip();
}
int Fl_Quartz_Graphics_Driver::clip_box(int x, int y, int w, int h, int& X, int& Y, int& W, int& H){
@@ -251,7 +253,7 @@ int Fl_Quartz_Graphics_Driver::not_clipped(int x, int y, int w, int h) {
void Fl_Quartz_Graphics_Driver::push_no_clip() {
if (rstackptr < region_stack_max) rstack[++rstackptr] = 0;
else Fl::warning("Fl_Quartz_Graphics_Driver::push_no_clip: clip stack overflow!\n");
- fl_restore_clip();
+ restore_clip();
}
// pop back to previous clip:
@@ -260,7 +262,7 @@ void Fl_Quartz_Graphics_Driver::pop_clip() {
Fl_Region oldr = rstack[rstackptr--];
if (oldr) XDestroyRegion(oldr);
} else Fl::warning("Fl_Quartz_Graphics_Driver::pop_clip: clip stack underflow!\n");
- fl_restore_clip();
+ restore_clip();
}
void Fl_Quartz_Graphics_Driver::restore_clip() {
@@ -277,7 +279,7 @@ void Fl_Quartz_Graphics_Driver::restore_clip() {
}
-#endif // FL_CFG_GFX_QUARTZ_RECT_CXX
+#endif // FL_CFG_GFX_QUARTZ
//
// End of "$Id$".