diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/Fl_win32.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Fl_win32.cxx b/src/Fl_win32.cxx index c90ecd084..c5fe41acf 100644 --- a/src/Fl_win32.cxx +++ b/src/Fl_win32.cxx @@ -2680,6 +2680,7 @@ void Fl_WinAPI_Window_Driver::capture_titlebar_and_borders(Fl_Shared_Image *&top pWindow->show(); while (Fl::ready()) Fl::check(); + HDC save_gc = (HDC)fl_graphics_driver->gc(); fl_graphics_driver->gc(GetDC(NULL)); int ww = w() * scaling + 2 * wsides; wsides /= scaling; @@ -2710,6 +2711,7 @@ void Fl_WinAPI_Window_Driver::capture_titlebar_and_borders(Fl_Shared_Image *&top } } ReleaseDC(NULL, (HDC)fl_graphics_driver->gc()); + fl_graphics_driver->gc(save_gc); Fl_Surface_Device::pop_current(); } |
