From 6dff22f7ff5bfb785897b7301b321de070d29b18 Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Sat, 9 Apr 2016 17:11:34 +0000 Subject: Add comment to make clear that fl_overlay.cxx is cross-platform at this point. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11567 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/fl_overlay.cxx | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/fl_overlay.cxx b/src/fl_overlay.cxx index 42a87e707..5412ebab2 100644 --- a/src/fl_overlay.cxx +++ b/src/fl_overlay.cxx @@ -23,11 +23,13 @@ #include #include -#ifdef __APPLE__ // PORTME: Fl_Window_Driver - platform overlay -#include -#endif //#define USE_XOR +// unless USE_XOR is defined, this source file is cross-platform + +#ifdef USE_XOR +#include +#endif static int px,py,pw,ph; @@ -49,7 +51,7 @@ static void draw_current_rect() { int old = SetROP2(fl_graphics_driver->gc(), R2_NOT); fl_rect(px, py, pw, ph); SetROP2(fl_graphics_driver->gc(), old); -# elif defined(__APPLE_QUARTZ__) // PORTME: Fl_Window_Driver - platform overlay +# elif defined(__APPLE_) // PORTME: Fl_Window_Driver - platform overlay // warning: Quartz does not support xor drawing // Use the Fl_Overlay_Window instead. fl_color(FL_WHITE); @@ -77,7 +79,7 @@ static void draw_current_rect() { fl_line_style(FL_DOT); fl_rect(px, py, pw, ph); fl_line_style(FL_SOLID); -#endif +#endif // USE_XOR } static void erase_current_rect() { -- cgit v1.2.3