mirror of
https://github.com/fltk/fltk.git
synced 2026-06-08 18:02:02 +08:00
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:
+3
-1
@@ -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);
|
||||
}
|
||||
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user