1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2025-12-22 23:33:04 +01:00

Close #15660: Allow showing window buttons on the left (#20176)

This commit is contained in:
Michael Steenbeek
2023-05-19 10:17:38 +02:00
committed by GitHub
parent e1f7b240da
commit 5e495d63c7
53 changed files with 238 additions and 50 deletions

View File

@@ -2262,8 +2262,16 @@ void WindowBase::ResizeFrame()
// Title
widgets[1].right = width - 2;
// Close button
widgets[2].left = width - 13;
widgets[2].right = width - 3;
if (gConfigInterface.WindowButtonsOnTheLeft)
{
widgets[2].left = 2;
widgets[2].right = 2 + CloseButtonWidth;
}
else
{
widgets[2].left = width - 3 - CloseButtonWidth;
widgets[2].right = width - 3;
}
}
void WindowBase::ResizeFrameWithPage()