From 04565cdcad7fa330b930e27925874c4f05bbdc98 Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Sat, 26 Aug 2017 14:15:20 +0000 Subject: Fl_WinAPI_Window_Driver::capture_titlebar_and_borders(): remove a few unnecessary statements. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12402 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl_win32.cxx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src') diff --git a/src/Fl_win32.cxx b/src/Fl_win32.cxx index 14d0c1e11..7077c326f 100644 --- a/src/Fl_win32.cxx +++ b/src/Fl_win32.cxx @@ -2539,11 +2539,9 @@ void Fl_WinAPI_Window_Driver::capture_titlebar_and_borders(Fl_Shared_Image*& top float scaling = Fl::screen_driver()->scale(screen_num()); RECT r = border_width_title_bar_height(wsides, hbottom, bt); int htop = bt + hbottom; - Window save_win = fl_window; Fl_Surface_Device::push_current( Fl_Display_Device::display_device() ); pWindow->show(); - Fl::check(); - void* save_gc = fl_graphics_driver->gc(); + while (Fl::ready()) Fl::check(); fl_graphics_driver->gc(GetDC(NULL)); int ww = w()*scaling + 2 * wsides; wsides /= scaling; if (wsides < 1) wsides = 1; @@ -2574,8 +2572,6 @@ void Fl_WinAPI_Window_Driver::capture_titlebar_and_borders(Fl_Shared_Image*& top } } ReleaseDC(NULL, (HDC)fl_graphics_driver->gc()); - fl_window = save_win; - fl_graphics_driver->gc(save_gc); Fl_Surface_Device::pop_current(); } -- cgit v1.2.3