Skip to content

Commit

Permalink
Add comment to make clear that fl_overlay.cxx is cross-platform at th…
Browse files Browse the repository at this point in the history
…is point.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11567 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
  • Loading branch information
Manolo Gouy authored and Manolo Gouy committed Apr 9, 2016
1 parent 65e19a1 commit 6dff22f
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/fl_overlay.cxx
Expand Up @@ -23,11 +23,13 @@

#include <FL/x.H>
#include <FL/fl_draw.H>
#ifdef __APPLE__ // PORTME: Fl_Window_Driver - platform overlay
#include <config.h>
#endif

//#define USE_XOR
// unless USE_XOR is defined, this source file is cross-platform

#ifdef USE_XOR
#include <config.h>
#endif

static int px,py,pw,ph;

Expand All @@ -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);
Expand Down Expand Up @@ -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() {
Expand Down

0 comments on commit 6dff22f

Please sign in to comment.