summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/fl_font_mac.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/fl_font_mac.cxx b/src/fl_font_mac.cxx
index 1a67bf558..d7ac2dfcb 100644
--- a/src/fl_font_mac.cxx
+++ b/src/fl_font_mac.cxx
@@ -425,6 +425,10 @@ 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 );
+ return;
+ }
// avoid a crash if no font has been selected by user yet !
check_default_font();
// convert to UTF-16 first