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 ) {