From 1e4de56baf9ee2c91f5e5ce17e6316a8dd59fac2 Mon Sep 17 00:00:00 2001 From: Broxzier Date: Sun, 2 Oct 2016 19:37:21 +0200 Subject: [PATCH] Clipping strings in list to fit their column --- src/windows/tile_inspector.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/windows/tile_inspector.c b/src/windows/tile_inspector.c index 68479e37bf..6083746541 100644 --- a/src/windows/tile_inspector.c +++ b/src/windows/tile_inspector.c @@ -2052,6 +2052,7 @@ static void window_tile_inspector_scrollpaint(rct_window *w, rct_drawpixelinfo * const bool ghost = (mapElement->flags & MAP_ELEMENT_FLAG_GHOST) != 0; const bool broken = (mapElement->flags & MAP_ELEMENT_FLAG_BROKEN) != 0; const bool last = (mapElement->flags & MAP_ELEMENT_FLAG_LAST_TILE) != 0; + gfx_clip_string(buffer, w->widgets[WIDX_COLUMN_TYPE].right - w->widgets[WIDX_COLUMN_TYPE].left - COL_X_TYPE); gfx_draw_string(dpi, typeName, 12, x + COL_X_TYPE + 3, y); // 3px padding gfx_draw_string_left(dpi, STR_FORMAT_INTEGER, &baseHeight, 12, x + COL_X_BH, y); gfx_draw_string_left(dpi, STR_FORMAT_INTEGER, &clearanceHeight, 12, x + COL_X_CH, y);