fix screen layout with emphasis

This commit is contained in:
RSDuck 2020-05-21 19:45:33 +02:00
parent 5dcf57e86d
commit ffd9c61bf7
1 changed files with 2 additions and 2 deletions

View File

@ -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);
}