summaryrefslogtreecommitdiff
path: root/src/fl_font_mac.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/fl_font_mac.cxx')
-rw-r--r--src/fl_font_mac.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fl_font_mac.cxx b/src/fl_font_mac.cxx
index d7ac2dfcb..53ae93d74 100644
--- a/src/fl_font_mac.cxx
+++ b/src/fl_font_mac.cxx
@@ -425,8 +425,8 @@ static CGColorRef flcolortocgcolor(Fl_Color i)
void fl_draw(const char *str, int n, float x, float y) {
- if(fl_device->type() != Fl_Quartz_Graphics_Driver::device_type) {
- fl_device->draw(str, n, (int)x, (int)y );
+ if(fl_graphics_driver->type() != Fl_Quartz_Graphics_Driver::device_type) {
+ fl_graphics_driver->draw(str, n, (int)x, (int)y );
return;
}
// avoid a crash if no font has been selected by user yet !