diff options
| author | Manolo Gouy <Manolo> | 2011-02-21 13:39:08 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2011-02-21 13:39:08 +0000 |
| commit | 693d12ee8834e57885279bfbdf98f002e3780571 (patch) | |
| tree | e73058712823ffcd6c97a65f0698949f6f5e29f5 /src | |
| parent | 287f5684ee86d9680c7984f66912ebaa8f3adb59 (diff) | |
Better horizontal positioning of right-to-left text.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8458 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src')
| -rw-r--r-- | src/fl_font_mac.cxx | 4 |
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); } // |
