mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-29 01:35:06 +01:00
Introduce widget::width and widget::height helper functions (#12053)
This commit is contained in:
@@ -562,8 +562,8 @@ static void window_title_editor_mousedown(rct_window* w, rct_widgetindex widgetI
|
||||
|
||||
widget--;
|
||||
window_dropdown_show_text_custom_width(
|
||||
{ w->windowPos.x + widget->left, w->windowPos.y + widget->top }, widget->bottom - widget->top + 1,
|
||||
w->colours[1], 0, DROPDOWN_FLAG_STAY_OPEN, numItems, widget->right - widget->left - 3);
|
||||
{ w->windowPos.x + widget->left, w->windowPos.y + widget->top }, widget->height() + 1, w->colours[1], 0,
|
||||
DROPDOWN_FLAG_STAY_OPEN, numItems, widget->width() - 3);
|
||||
dropdown_set_checked(static_cast<int32_t>(_selectedTitleSequence), true);
|
||||
}
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user