diff options
| author | Manolo Gouy <Manolo> | 2016-11-09 09:49:48 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2016-11-09 09:49:48 +0000 |
| commit | c530cdeda65fa1479b2a77c63b91e8a947cc32eb (patch) | |
| tree | 96aee1efca331910e9f30b32969437f79f615d07 /src/drivers/WinAPI/Fl_WinAPI_Screen_Driver.cxx | |
| parent | f08c41448576d3694f9cf07c7122c9a0e690dbca (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/drivers/WinAPI/Fl_WinAPI_Screen_Driver.cxx')
| -rw-r--r-- | src/drivers/WinAPI/Fl_WinAPI_Screen_Driver.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drivers/WinAPI/Fl_WinAPI_Screen_Driver.cxx b/src/drivers/WinAPI/Fl_WinAPI_Screen_Driver.cxx index c8fd4a2e0..6c3e99dca 100644 --- a/src/drivers/WinAPI/Fl_WinAPI_Screen_Driver.cxx +++ b/src/drivers/WinAPI/Fl_WinAPI_Screen_Driver.cxx @@ -56,7 +56,7 @@ int Fl_WinAPI_Screen_Driver::visual(int flags) { fl_GetDC(0); if (flags & FL_DOUBLE) return 0; - HDC gc = (HDC)Fl_Display_Device::display_device()->driver()->gc(); + HDC gc = (HDC)Fl_Graphics_Driver::default_driver().gc(); if (!(flags & FL_INDEX) && GetDeviceCaps(gc,BITSPIXEL) <= 8) return 0; if ((flags & FL_RGB8) && GetDeviceCaps(gc,BITSPIXEL)<24) return 0; |
