1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2025-12-24 00:03:11 +01:00

Move widget constants from Windows.h to Widget.h

This commit is contained in:
Aaron van Geffen
2024-05-10 22:14:10 +02:00
parent 738471ff84
commit 96ce7f706f
6 changed files with 26 additions and 23 deletions

View File

@@ -1849,11 +1849,11 @@ void WindowBase::ResizeFrame()
if (Config::Get().interface.WindowButtonsOnTheLeft)
{
widgets[2].left = 2;
widgets[2].right = 2 + CloseButtonWidth;
widgets[2].right = 2 + kCloseButtonWidth;
}
else
{
widgets[2].left = width - 3 - CloseButtonWidth;
widgets[2].left = width - 3 - kCloseButtonWidth;
widgets[2].right = width - 3;
}
}