Skip to content

Commit

Permalink
fix window aspect ratio
Browse files Browse the repository at this point in the history
  • Loading branch information
RSDuck committed Jan 17, 2023
1 parent 8ec8a6c commit d83172e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/frontend/qt_sdl/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -966,10 +966,10 @@ void ScreenHandler::screenSetupLayout(int w, int h)
}

if (aspectTop == 0)
aspectTop = (float) w / h;
aspectTop = ((float) w / h) / (4.f / 3.f);

if (aspectBot == 0)
aspectBot = (float) w / h;
aspectBot = ((float) w / h) / (4.f / 3.f);

Frontend::SetupScreenLayout(w, h,
Config::ScreenLayout,
Expand Down

0 comments on commit d83172e

Please sign in to comment.