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
This commit is contained in:
parent
65e19a1d2d
commit
6dff22f7ff
@ -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;
|
||||
|
||||
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user