mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-28 17:24:47 +01:00
Introduce widget::width and widget::height helper functions (#12053)
This commit is contained in:
@@ -558,7 +558,7 @@ static void window_scenarioselect_scrollpaint(rct_window* w, rct_drawpixelinfo*
|
||||
bool wide = gConfigGeneral.scenario_select_mode == SCENARIO_SELECT_MODE_ORIGIN || _titleEditor;
|
||||
|
||||
rct_widget* listWidget = &w->widgets[WIDX_SCENARIOLIST];
|
||||
int32_t listWidth = listWidget->right - listWidget->left - 12;
|
||||
int32_t listWidth = listWidget->width() - 12;
|
||||
|
||||
const int32_t scenarioItemHeight = get_scenario_list_item_size();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user