From 976e0a53e01b118589044f72d3768a2d8d222fdc Mon Sep 17 00:00:00 2001 From: Fabio K Date: Sun, 31 Jan 2016 23:35:14 -0200 Subject: [PATCH] Fix #2855: scenario path overflowing dialog on RCT1 font Changes the global variable defining the current font in use before calculating whether the path should be shortened. Fixes OpenRCT2/OpenRCT2#2855 --- src/windows/title_scenarioselect.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/windows/title_scenarioselect.c b/src/windows/title_scenarioselect.c index 4647473497..021d63548e 100644 --- a/src/windows/title_scenarioselect.c +++ b/src/windows/title_scenarioselect.c @@ -379,6 +379,8 @@ static void window_scenarioselect_paint(rct_window *w, rct_drawpixelinfo *dpi) // Scenario path if (gConfigGeneral.debugging_tools) { utf8 path[MAX_PATH]; + + RCT2_GLOBAL(RCT2_ADDRESS_CURRENT_FONT_SPRITE_BASE, uint16) = 224; shorten_path(path, sizeof(path), scenario->path, w->width - 6); const utf8 *pathPtr = path;