1
0
mirror of https://github.com/OpenTTD/OpenTTD synced 2026-01-24 12:44:10 +01:00

Fix #12976: Incorrect widget rect scrolling for RTL languages. (#12978)

Industry directory, AS/GS and Textfile window did not consider RTL when applying horizontal scrolling.
This commit is contained in:
Peter Nelson
2024-10-05 08:02:59 +01:00
committed by GitHub
parent 114c28e69c
commit 3cd1200668
5 changed files with 38 additions and 6 deletions

View File

@@ -1712,8 +1712,7 @@ public:
AutoRestoreBackup dpi_backup(_cur_dpi, &tmp_dpi);
ir.left -= this->hscroll->GetPosition();
ir.right += this->hscroll->GetCapacity() - this->hscroll->GetPosition();
ir = ScrollRect(ir, *this->hscroll, 1);
if (this->industries.empty()) {
DrawString(ir, STR_INDUSTRY_DIRECTORY_NONE);