From 1f7e2f4322b1908010016bae6d8dd315895ebc43 Mon Sep 17 00:00:00 2001 From: AJ Heller Date: Sat, 15 Feb 2020 16:34:20 -0800 Subject: [PATCH] Fixes #38049: Crash on start when SCALING_FACTOR option is 2 or 4 --- src/sdltiles.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sdltiles.cpp b/src/sdltiles.cpp index c9ee7420a7d51..9540f4f7ce363 100644 --- a/src/sdltiles.cpp +++ b/src/sdltiles.cpp @@ -3409,7 +3409,7 @@ static void init_term_size_and_scaling_factor() int max_width, max_height; - int current_display_id = get_option( "DISPLAY" ); + int current_display_id = std::stoi( get_option( "DISPLAY" ) ); SDL_DisplayMode current_display; if( SDL_GetDesktopDisplayMode( current_display_id, ¤t_display ) == 0 ) {