From 92051890f1127429142cc0b60e3e9a1e567bf01d Mon Sep 17 00:00:00 2001 From: Fabien Costantini Date: Mon, 13 Oct 2008 23:10:43 +0000 Subject: Quickdraw removal: option removed from configure, all Qd code removed from sources. Also took this opportunity to sort the ifdef clauses so that USE_X11 shows first. Also added error pragma to enforce proper target checking, thus make even less assumptions. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6423 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl_mac.cxx | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'src/Fl_mac.cxx') diff --git a/src/Fl_mac.cxx b/src/Fl_mac.cxx index f90d95609..e889db4d8 100644 --- a/src/Fl_mac.cxx +++ b/src/Fl_mac.cxx @@ -680,7 +680,7 @@ static pascal void do_timer(EventLoopTimerRef timer, void* data) */ static double do_queued_events( double time = 0.0 ) { - static bool been_here = 0; + static bool been_here = false; static RgnHandle rgn; // initialize events and a region that enables mouse move events @@ -690,7 +690,7 @@ static double do_queued_events( double time = 0.0 ) GetMouse(&mp); SetRectRgn(rgn, mp.h, mp.v, mp.h, mp.v); SetEventMask(everyEvent); - been_here = 1; + been_here = true; } OSStatus ret; static EventTargetRef target = 0; @@ -1569,15 +1569,8 @@ unsigned short mac2fltk(ulong macKey) void Fl_X::flush() { w->flush(); -#ifdef __APPLE_QD__ - GrafPtr port; - GetPort( &port ); - if ( port ) - QDFlushPortBuffer( port, 0 ); -#elif defined (__APPLE_QUARTZ__) if (fl_gc) CGContextFlush(fl_gc); -#endif SetOrigin( 0, 0 ); } -- cgit v1.2.3