From c530cdeda65fa1479b2a77c63b91e8a947cc32eb Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Wed, 9 Nov 2016 09:49:48 +0000 Subject: 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 --- src/drivers/Cocoa/Fl_Cocoa_Screen_Driver.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/drivers/Cocoa') 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); } -- cgit v1.2.3