summaryrefslogtreecommitdiff
path: root/src/Fl_win32.cxx
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2016-11-09 09:49:48 +0000
committerManolo Gouy <Manolo>2016-11-09 09:49:48 +0000
commitc530cdeda65fa1479b2a77c63b91e8a947cc32eb (patch)
tree96aee1efca331910e9f30b32969437f79f615d07 /src/Fl_win32.cxx
parentf08c41448576d3694f9cf07c7122c9a0e690dbca (diff)
Use Fl_Graphics_Driver::default_driver() when convenient.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@12088 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_win32.cxx')
-rw-r--r--src/Fl_win32.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Fl_win32.cxx b/src/Fl_win32.cxx
index f3f20a40c..ab1c4c099 100644
--- a/src/Fl_win32.cxx
+++ b/src/Fl_win32.cxx
@@ -2267,13 +2267,13 @@ HWND fl_window = NULL;
// Here we ensure only one GetDC is ever in place.
HDC fl_GetDC(HWND w) {
- HDC gc = (HDC)Fl_Display_Device::display_device()->driver()->gc();
+ HDC gc = (HDC)Fl_Graphics_Driver::default_driver().gc();
if (gc) {
if (w == fl_window && fl_window != NULL) return gc;
if (fl_window) fl_release_dc(fl_window, gc); // ReleaseDC
}
gc = GetDC(w);
- Fl_Display_Device::display_device()->driver()->gc(gc);
+ Fl_Graphics_Driver::default_driver().gc(gc);
fl_save_dc(w, gc);
fl_window = w;
// calling GetDC seems to always reset these: (?)