From 9a0be2c8df4c12f70ada36c25f6d64a8be52b0dc Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Thu, 11 Feb 2016 00:10:49 +0000 Subject: Move platform part of Fl::flush() git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11153 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl.cxx | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) (limited to 'src/Fl.cxx') diff --git a/src/Fl.cxx b/src/Fl.cxx index 52208b58f..9c5ca21c9 100644 --- a/src/Fl.cxx +++ b/src/Fl.cxx @@ -888,18 +888,7 @@ void Fl::flush() { if (i->region) {XDestroyRegion(i->region); i->region = 0;} } } -#if defined(USE_X11) - if (fl_display) XFlush(fl_display); -#elif defined(WIN32) - GdiFlush(); -#elif defined (__APPLE_QUARTZ__) - if (fl_gc) - CGContextFlush(fl_gc); -#elif defined(FL_PORTING) -# pragma message "FL_PORTING: flush your graphics context here" -#else -# error unsupported platform -#endif + screen_driver()->flush(); } -- cgit v1.2.3