Tile inspector: clip overly long object name strings.

This commit is contained in:
Aaron van Geffen 2018-05-26 01:20:46 +02:00
parent 146235931f
commit 7a107264df

View file

@ -2158,7 +2158,7 @@ static void window_tile_inspector_scrollpaint(rct_window* w, rct_drawpixelinfo*
const sint32 x = -w->widgets[WIDX_LIST].left; const sint32 x = -w->widgets[WIDX_LIST].left;
set_format_arg(0, rct_string_id, STR_STRING); set_format_arg(0, rct_string_id, STR_STRING);
set_format_arg(2, char*, typeName); set_format_arg(2, char*, typeName);
gfx_draw_string_left(dpi, stringFormat, gCommonFormatArgs, COLOUR_BLACK, x + COL_X_TYPE + 3, y); // 3px padding gfx_draw_string_left_clipped(dpi, stringFormat, gCommonFormatArgs, COLOUR_BLACK, x + COL_X_TYPE + 3, y, COL_X_BH); // 3px padding
// Base height // Base height
set_format_arg(0, rct_string_id, STR_FORMAT_INTEGER); set_format_arg(0, rct_string_id, STR_FORMAT_INTEGER);