1
0
mirror of https://github.com/OpenTTD/OpenTTD synced 2026-01-16 08:52:40 +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

@@ -910,7 +910,7 @@ struct ScriptDebugWindow : public Window {
AutoRestoreBackup dpi_backup(_cur_dpi, &tmp_dpi);
fr.left -= this->hscroll->GetPosition();
fr = ScrollRect(fr, *this->hscroll, 1);
auto [first, last] = this->vscroll->GetVisibleRangeIterators(log);
for (auto it = first; it != last; ++it) {