From 408d0672a4b50dc7f9d8babd6d03f5cdcbe034da Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Fri, 11 Mar 2016 08:31:36 +0000 Subject: Rewrite Fl_Window::wait_for_expose() using the window driver approach. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11346 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl_Window.cxx | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'src/Fl_Window.cxx') diff --git a/src/Fl_Window.cxx b/src/Fl_Window.cxx index 53b300817..0646d5912 100644 --- a/src/Fl_Window.cxx +++ b/src/Fl_Window.cxx @@ -363,8 +363,6 @@ void Fl_Window::free_icons() { pWindowDriver->free_icons(); } - -#ifndef __APPLE__ // PORTME: Fl_Window_Driver - platform window driver /** Waits for the window to be displayed after calling show(). @@ -425,16 +423,10 @@ void Fl_Window::free_icons() { Note that the window will not be responsive until the event loop is started with Fl::run(). */ - void Fl_Window::wait_for_expose() { - if (!shown()) return; - while (!i || i->wait_for_expose) { - Fl::wait(); - } + pWindowDriver->wait_for_expose(); } -#endif // ! __APPLE__ // PORTME: Fl_Window_Driver - platform window driver - // // End of "$Id$". // -- cgit v1.2.3