diff options
| author | Manolo Gouy <Manolo> | 2010-12-17 10:43:41 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2010-12-17 10:43:41 +0000 |
| commit | f3c7efc8d2feb9a67b6fdff09f4f428125eb5b79 (patch) | |
| tree | 63543707427edef3bfc49af7bee60ede908527fe /src/Fl_cocoa.mm | |
| parent | ff4cafeb303cd8e9d24b62c45661f6da5067d556 (diff) | |
The 3 objective-c++ files used for the Mac OS X support are no longer included
by other files but added to the list of source files to be compiled
for Mac OS X only. Support files for autoconf/configure/make, CMake and Xcode
are also modified accordingly.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8049 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_cocoa.mm')
| -rw-r--r-- | src/Fl_cocoa.mm | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/Fl_cocoa.mm b/src/Fl_cocoa.mm index 49deb785f..2c8702313 100644 --- a/src/Fl_cocoa.mm +++ b/src/Fl_cocoa.mm @@ -703,6 +703,16 @@ int fl_wait( double time ) return (got_events); } +double fl_MAC_flush_and_wait(double time_to_wait, char in_idle) { + NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; + Fl::flush(); + if (Fl::idle && !in_idle) // 'idle' may have been set within flush() + time_to_wait = 0.0; + double retval = fl_wait(time_to_wait); + [pool release]; + return retval; +} + // updates Fl::e_x, Fl::e_y, Fl::e_x_root, and Fl::e_y_root static void update_e_xy_and_e_xy_root(NSWindow *nsw) { |
