summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/fl_font_mac.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/fl_font_mac.cxx b/src/fl_font_mac.cxx
index f915143c5..77d0f7e48 100644
--- a/src/fl_font_mac.cxx
+++ b/src/fl_font_mac.cxx
@@ -503,7 +503,9 @@ void Fl_Quartz_Graphics_Driver::draw(int angle, const char *str, int n, int x, i
}
void Fl_Quartz_Graphics_Driver::rtl_draw(const char* c, int n, int x, int y) {
- draw(c, n, int(x - width(c, n)), y);
+ int dx, dy, w, h;
+ text_extents(c, n, dx, dy, w, h);
+ draw(c, n, x - w - dx, y);
}
//