aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRSDuck <rsduck@users.noreply.github.com>2020-05-21 19:45:33 +0200
committerRSDuck <rsduck@users.noreply.github.com>2020-05-21 19:45:33 +0200
commitffd9c61bf79852f2364166c4770719146500f4b9 (patch)
tree31fe49b84248a81b1298a38f39a04313f66a56b6 /src
parent5dcf57e86dc8e768d33406fb446f25bf186eef4d (diff)
fix screen layout with emphasis
Diffstat (limited to 'src')
-rw-r--r--src/frontend/Util_Video.cpp4
1 files 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);
}