diff --git a/desktop_version/src/Font.cpp b/desktop_version/src/Font.cpp index cc64dadd..cf47a176 100644 --- a/desktop_version/src/Font.cpp +++ b/desktop_version/src/Font.cpp @@ -1290,7 +1290,16 @@ void print( { x = SCREEN_WIDTH_PIXELS / 2; } - x = SDL_max(x - textlen/2, 0); + x -= textlen/2; + + if (!pf.rtl) + { + x = SDL_max(x, 0); + } + else + { + x = SDL_min(x, SCREEN_WIDTH_PIXELS - textlen); + } } else {