mirror of https://github.com/fltk/fltk
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
This commit is contained in:
parent
1fdf15d8eb
commit
04565cdcad
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue