mirror of
https://github.com/fltk/fltk.git
synced 2026-06-06 08:32:07 +08:00
Account for translation also in non-Pango code section.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12211 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
@@ -771,9 +771,9 @@ void Fl_Xlib_Graphics_Driver::draw(const char *str, int n, int x, int y) {
|
|||||||
|
|
||||||
const wchar_t *buffer = utf8reformat(str, n);
|
const wchar_t *buffer = utf8reformat(str, n);
|
||||||
#ifdef __CYGWIN__
|
#ifdef __CYGWIN__
|
||||||
XftDrawString16(draw_, &color, font_descriptor()->font, x, y, (XftChar16 *)buffer, n);
|
XftDrawString16(draw_, &color, font_descriptor()->font, x+offset_x_, y+offset_y_, (XftChar16 *)buffer, n);
|
||||||
#else
|
#else
|
||||||
XftDrawString32(draw_, &color, font_descriptor()->font, x, y, (XftChar32 *)buffer, n);
|
XftDrawString32(draw_, &color, font_descriptor()->font, x+offset_x_, y+offset_y_, (XftChar32 *)buffer, n);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -814,7 +814,7 @@ void Fl_Xlib_Graphics_Driver::drawUCS4(const void *str, int n, int x, int y) {
|
|||||||
color.color.blue = ((int)b)*0x101;
|
color.color.blue = ((int)b)*0x101;
|
||||||
color.color.alpha = 0xffff;
|
color.color.alpha = 0xffff;
|
||||||
|
|
||||||
XftDrawString32(draw_, &color, font_descriptor()->font, x, y, (FcChar32 *)str, n);
|
XftDrawString32(draw_, &color, font_descriptor()->font, x+offset_x_, y+offset_x_, (FcChar32 *)str, n);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user