mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-30 18:25:16 +01:00
Rename kCloseButtonWidth to kCloseButtonSize
This commit is contained in:
committed by
Gymnasiast
parent
87bb2f10dd
commit
e0f9a33923
@@ -562,13 +562,13 @@ namespace OpenRCT2::Ui
|
||||
int32_t width = widget->width() - 4;
|
||||
if ((widget + 1)->type == WindowWidgetType::CloseBox)
|
||||
{
|
||||
width -= kCloseButtonWidth;
|
||||
width -= kCloseButtonSize;
|
||||
if ((widget + 2)->type == WindowWidgetType::CloseBox)
|
||||
width -= kCloseButtonWidth;
|
||||
width -= kCloseButtonSize;
|
||||
}
|
||||
topLeft.x += width / 2;
|
||||
if (Config::Get().interface.WindowButtonsOnTheLeft)
|
||||
topLeft.x += kCloseButtonWidth;
|
||||
topLeft.x += kCloseButtonSize;
|
||||
|
||||
DrawTextEllipsised(
|
||||
dpi, topLeft, width, widget->text, Formatter::Common(),
|
||||
|
||||
Reference in New Issue
Block a user