mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-06 14:27:16 +00:00
(svn r25943) -Fix: NewGRF inspect window in RTL mode.
This commit is contained in:
parent
cbcbcef1a0
commit
df10f7b9f9
@ -348,7 +348,7 @@ struct NewGRFInspectWindow : Window {
|
|||||||
offset -= this->vscroll->GetPosition();
|
offset -= this->vscroll->GetPosition();
|
||||||
if (offset < 0 || offset >= this->vscroll->GetCapacity()) return;
|
if (offset < 0 || offset >= this->vscroll->GetCapacity()) return;
|
||||||
|
|
||||||
::DrawString(r.left + LEFT_OFFSET, r.right + RIGHT_OFFSET, r.top + TOP_OFFSET + (offset * this->resize.step_height), buf, TC_BLACK);
|
::DrawString(r.left + LEFT_OFFSET, r.right - RIGHT_OFFSET, r.top + TOP_OFFSET + (offset * this->resize.step_height), buf, TC_BLACK);
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual void DrawWidget(const Rect &r, int widget) const
|
virtual void DrawWidget(const Rect &r, int widget) const
|
||||||
|
Loading…
Reference in New Issue
Block a user