1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-26 00:04:43 +01:00

Part of #11564: gfx_draw_string_centred_clipped with ScreenCoordsXY

This commit is contained in:
Tulio Leao
2020-06-11 10:58:19 -03:00
parent ce171164c9
commit 613cec3f7a
14 changed files with 31 additions and 28 deletions

View File

@@ -612,7 +612,7 @@ static void window_editor_inventions_list_paint(rct_window* w, rct_drawpixelinfo
width = w->width - w->widgets[WIDX_RESEARCH_ORDER_SCROLL].right - 6;
rct_string_id drawString = window_editor_inventions_list_prepare_name(researchItem, false);
gfx_draw_string_centred_clipped(dpi, drawString, gCommonFormatArgs, COLOUR_BLACK, x, y, width);
gfx_draw_string_centred_clipped(dpi, drawString, gCommonFormatArgs, COLOUR_BLACK, { x, y }, width);
y += 15;
// Item category