1
0
mirror of https://github.com/OpenTTD/OpenTTD synced 2026-01-20 10:52:41 +01:00

Fix: Numbers were left-aligned for RTL languages in several windows. (#13959)

This commit is contained in:
frosch
2025-04-04 11:48:50 +02:00
committed by GitHub
parent 44984f8410
commit cedc511324
4 changed files with 14 additions and 13 deletions

View File

@@ -330,7 +330,7 @@ struct DepotWindow : Window {
Rect count = text.WithWidth(this->count_width - WidgetDimensions::scaled.hsep_normal, !rtl);
DrawString(count.left, count.right, count.bottom - GetCharacterHeight(FS_SMALL) + 1,
GetString(STR_JUST_DECIMAL, CeilDiv(u->gcache.cached_total_length * 10, TILE_SIZE), 1),
TC_BLACK, SA_RIGHT, false, FS_SMALL); // Draw the counter
TC_BLACK, SA_RIGHT | SA_FORCE, false, FS_SMALL); // Draw the counter
break;
}