mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-25 15:54:31 +01:00
Change gfx_draw_string_*_wrapped() to DrawTextWrapped()
This commit is contained in:
@@ -418,16 +418,16 @@ static void window_multiplayer_information_paint(rct_window* w, rct_drawpixelinf
|
||||
|
||||
const utf8* name = network_get_server_name();
|
||||
{
|
||||
screenCoords.y += gfx_draw_string_left_wrapped(
|
||||
dpi, static_cast<void*>(&name), screenCoords, width, STR_STRING, w->colours[1]);
|
||||
screenCoords.y += DrawTextWrapped(
|
||||
dpi, screenCoords, width, STR_STRING, static_cast<void*>(&name), { w->colours[1] });
|
||||
screenCoords.y += LIST_ROW_HEIGHT / 2;
|
||||
}
|
||||
|
||||
const utf8* description = network_get_server_description();
|
||||
if (!str_is_null_or_empty(description))
|
||||
{
|
||||
screenCoords.y += gfx_draw_string_left_wrapped(
|
||||
dpi, static_cast<void*>(&description), screenCoords, width, STR_STRING, w->colours[1]);
|
||||
screenCoords.y += DrawTextWrapped(
|
||||
dpi, screenCoords, width, STR_STRING, static_cast<void*>(&description), { w->colours[1] });
|
||||
screenCoords.y += LIST_ROW_HEIGHT / 2;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user