diff options
| author | Matthias Melcher <fltk@matthiasm.com> | 2001-12-06 00:17:47 +0000 |
|---|---|---|
| committer | Matthias Melcher <fltk@matthiasm.com> | 2001-12-06 00:17:47 +0000 |
| commit | e07200c4e847ddff8a46ea9fdc23e17437d74c15 (patch) | |
| tree | d894e182e410b76b62fdeefbb4122ab4ac8665b6 /src/Fl.cxx | |
| parent | 39109694e1873fce011df470f2edd57a0028e0a3 (diff) | |
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
Diffstat (limited to 'src/Fl.cxx')
| -rw-r--r-- | src/Fl.cxx | 13 |
1 files changed, 10 insertions, 3 deletions
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 $". // |
