summaryrefslogtreecommitdiff
path: root/src/drivers/Cocoa
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/drivers/Cocoa
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/drivers/Cocoa')
-rw-r--r--src/drivers/Cocoa/Fl_Cocoa_Screen_Driver.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drivers/Cocoa/Fl_Cocoa_Screen_Driver.cxx b/src/drivers/Cocoa/Fl_Cocoa_Screen_Driver.cxx
index 9882fa3e9..71a64292d 100644
--- a/src/drivers/Cocoa/Fl_Cocoa_Screen_Driver.cxx
+++ b/src/drivers/Cocoa/Fl_Cocoa_Screen_Driver.cxx
@@ -136,7 +136,7 @@ void Fl_Cocoa_Screen_Driver::beep(int type) {
void Fl_Cocoa_Screen_Driver::flush() {
- CGContextRef gc = (CGContextRef)Fl_Display_Device::display_device()->driver()->gc();
+ CGContextRef gc = (CGContextRef)Fl_Graphics_Driver::default_driver().gc();
if (gc)
CGContextFlush(gc);
}