diff options
| author | Manolo Gouy <Manolo> | 2017-08-26 14:15:20 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2017-08-26 14:15:20 +0000 |
| commit | 04565cdcad7fa330b930e27925874c4f05bbdc98 (patch) | |
| tree | b2c1f503a681544b5166fc4436167951236ceccb | |
| parent | 1fdf15d8ebd443c3ffc736a21944e091f99c07ce (diff) | |
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
| -rw-r--r-- | src/Fl_win32.cxx | 6 |
1 files changed, 1 insertions, 5 deletions
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(); } |
