diff options
| author | Manolo Gouy <Manolo> | 2016-09-20 12:58:51 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2016-09-20 12:58:51 +0000 |
| commit | 827fa250f3bfd0c9dc68d1483ae3c41b144adfee (patch) | |
| tree | 551e41cb7891db8c0317f10bb21ffc80a000695f /src/Fl_cocoa.mm | |
| parent | c06374378f212f8fe55b7bc08603871be5502aa2 (diff) | |
Remove fl_wait() that is not part of the public API.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11953 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_cocoa.mm')
| -rw-r--r-- | src/Fl_cocoa.mm | 17 |
1 files changed, 3 insertions, 14 deletions
diff --git a/src/Fl_cocoa.mm b/src/Fl_cocoa.mm index c317ef6fa..6e3bcfeef 100644 --- a/src/Fl_cocoa.mm +++ b/src/Fl_cocoa.mm @@ -839,19 +839,6 @@ static double do_queued_events( double time = 0.0 ) } -/* - * This public function handles all events. It wait a maximum of - * 'time' seconds for an event. This version returns 1 if events - * other than the timeout timer were processed. - * - * \todo there is no socket handling in this code whatsoever - */ -int fl_wait( double time ) -{ - do_queued_events( time ); - return (got_events); -} - double fl_mac_flush_and_wait(double time_to_wait) { static int in_idle = 0; NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; @@ -869,7 +856,9 @@ double fl_mac_flush_and_wait(double time_to_wait) { NSEnableScreenUpdates(); // 10.3 if (Fl::idle && !in_idle) // 'idle' may have been set within flush() time_to_wait = 0.0; - double retval = fl_wait(time_to_wait); + do_queued_events( time_to_wait ); + double retval = got_events; + Fl_Cocoa_Window_Driver::q_release_context(); [pool release]; return retval; |
