From e07200c4e847ddff8a46ea9fdc23e17437d74c15 Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Thu, 6 Dec 2001 00:17:47 +0000 Subject: Implemeted 95% of all Mac OS X support. Makefiles still need modifications. Almost all test applications run out of the box (->Makefile). See more information in README.mac . Changes: - message handling - access to opaque port structures - image, bitmap, pixmap support - most OpenGL stuff - window styles git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1812 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl.cxx | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'src/Fl.cxx') diff --git a/src/Fl.cxx b/src/Fl.cxx index 51bf7d61c..d803583ce 100644 --- a/src/Fl.cxx +++ b/src/Fl.cxx @@ -1,5 +1,5 @@ // -// "$Id: Fl.cxx,v 1.24.2.41.2.10 2001/11/28 20:43:44 easysw Exp $" +// "$Id: Fl.cxx,v 1.24.2.41.2.11 2001/12/06 00:17:47 matthiaswm Exp $" // // Main event handling code for the Fast Light Tool Kit (FLTK). // @@ -361,7 +361,14 @@ void Fl::flush() { #ifdef WIN32 GdiFlush(); -#elif !defined(__APPLE__) +#elif defined (__APPLE__) + GrafPtr port; GetPort( &port ); + if ( port ) + { + QDFlushPortBuffer( port, 0 ); + //printf("DBG: Fl::flush\n"); + } +#else if (fl_display) XFlush(fl_display); #endif } @@ -834,5 +841,5 @@ void Fl_Window::flush() { } // -// End of "$Id: Fl.cxx,v 1.24.2.41.2.10 2001/11/28 20:43:44 easysw Exp $". +// End of "$Id: Fl.cxx,v 1.24.2.41.2.11 2001/12/06 00:17:47 matthiaswm Exp $". // -- cgit v1.2.3