mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-28 17:24:47 +01:00
Introduce widget::midX and widget::midY helper functions
This commit is contained in:
@@ -461,8 +461,7 @@ static void window_scenarioselect_paint(rct_window* w, rct_drawpixelinfo* dpi)
|
||||
ft.Add<rct_string_id>(ScenarioCategoryStringIds[i]);
|
||||
}
|
||||
|
||||
ScreenCoordsXY stringCoords(
|
||||
(widget->left + widget->right) / 2 + w->windowPos.x, (widget->top + widget->bottom) / 2 + w->windowPos.y - 3);
|
||||
ScreenCoordsXY stringCoords(widget->midX() + w->windowPos.x, widget->midY() + w->windowPos.y - 3);
|
||||
gfx_draw_string_centred_wrapped(dpi, gCommonFormatArgs, stringCoords, 87, format, COLOUR_AQUAMARINE);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user