From ffd9c61bf79852f2364166c4770719146500f4b9 Mon Sep 17 00:00:00 2001 From: RSDuck Date: Thu, 21 May 2020 19:45:33 +0200 Subject: fix screen layout with emphasis --- src/frontend/Util_Video.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/frontend/Util_Video.cpp b/src/frontend/Util_Video.cpp index cd4e21c..0f5ff66 100644 --- a/src/frontend/Util_Video.cpp +++ b/src/frontend/Util_Video.cpp @@ -235,14 +235,14 @@ void SetupScreenLayout(int screenWidth, int screenHeight, int screenLayout, int if (layout == 0) { if (screenHeight - primVSize * primScale < secVSize) - primScale = std::min((screenWidth - secHSize) / primHSize, (screenHeight - secVSize) / primVSize); + primScale = std::min(screenWidth / primHSize, (screenHeight - secVSize) / primVSize); else secScale = std::min((screenHeight - primVSize * primScale) / secVSize, screenWidth / secHSize); } else { if (screenWidth - primHSize * primScale < secHSize) - primScale = std::min((screenWidth - secHSize) / primHSize, (screenHeight - secVSize) / primVSize); + primScale = std::min((screenWidth - secHSize) / primHSize, screenHeight / primVSize); else secScale = std::min((screenWidth - primHSize * primScale) / secHSize, screenHeight / secVSize); } -- cgit v1.2.3