mirror of
https://github.com/OpenTTD/OpenTTD
synced 2026-01-24 12:44:10 +01:00
Industry directory, AS/GS and Textfile window did not consider RTL when applying horizontal scrolling.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user