mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-21 05:53:02 +01:00
Introduce widget::width and widget::height helper functions (#12053)
This commit is contained in:
@@ -185,8 +185,8 @@ static void window_title_menu_mousedown(rct_window* w, rct_widgetindex widgetInd
|
||||
gDropdownItemsFormat[3] = STR_TRACK_DESIGNS_MANAGER;
|
||||
gDropdownItemsFormat[4] = STR_OPEN_USER_CONTENT_FOLDER;
|
||||
window_dropdown_show_text(
|
||||
{ w->windowPos.x + widget->left, w->windowPos.y + widget->top }, widget->bottom - widget->top + 1,
|
||||
TRANSLUCENT(w->colours[0]), DROPDOWN_FLAG_STAY_OPEN, 5);
|
||||
{ w->windowPos.x + widget->left, w->windowPos.y + widget->top }, widget->height() + 1, TRANSLUCENT(w->colours[0]),
|
||||
DROPDOWN_FLAG_STAY_OPEN, 5);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user