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
This commit is contained in:
Manolo Gouy
2011-02-21 13:39:08 +00:00
parent 287f5684ee
commit 693d12ee88
+3 -1
View File
@@ -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);
}
//