Fix X11 RTL text clipping (STR 2798) - part 2

Yet another fix for RTL text...
This commit is contained in:
Albrecht Schlosser 2020-01-09 00:35:42 +01:00
parent 2df013931b
commit 2411336e84
1 changed files with 5 additions and 0 deletions

View File

@ -873,6 +873,11 @@ void Fl_Xlib_Graphics_Driver::drawUCS4(const void *str, int n, int x, int y) {
void Fl_Xlib_Graphics_Driver::rtl_draw_unscaled(const char* c, int n, int x, int y) {
// clip if outside 16-bit space (STR 2798)
if (x < clip_min() || x > clip_max()) return;
if (y < clip_min() || y > clip_max()) return;
#if defined(__GNUC__)
// FIXME: warning Need to improve this XFT right to left draw function
#endif /*__GNUC__*/