Skip to content

Commit

Permalink
Fixes CleverRaven#38049: Crash on start when SCALING_FACTOR option is…
Browse files Browse the repository at this point in the history
… 2 or 4
  • Loading branch information
drfloob committed Feb 16, 2020
1 parent 26b2614 commit 1f7e2f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sdltiles.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3409,7 +3409,7 @@ static void init_term_size_and_scaling_factor()

int max_width, max_height;

int current_display_id = get_option<int>( "DISPLAY" );
int current_display_id = std::stoi( get_option<std::string>( "DISPLAY" ) );
SDL_DisplayMode current_display;

if( SDL_GetDesktopDisplayMode( current_display_id, &current_display ) == 0 ) {
Expand Down

0 comments on commit 1f7e2f4

Please sign in to comment.