This commit is contained in:
RSDuck 2021-05-24 18:29:12 +02:00
parent e02bbcb3ac
commit f271bdf325
1 changed files with 5 additions and 2 deletions

View File

@ -348,6 +348,9 @@ void SetupScreenLayout(int screenWidth, int screenHeight,
float primScale = std::min(screenWidth / primHSize, screenHeight / primVSize);
float secScale = 1.f;
if (integerScale)
primScale = floorf(primScale);
if (layout == 0)
{
if (screenHeight - primVSize * primScale < secVSize)
@ -365,8 +368,8 @@ void SetupScreenLayout(int screenWidth, int screenHeight,
if (integerScale)
{
primScale = floor(primScale);
secScale = floor(secScale);
primScale = floorf(primScale);
secScale = floorf(secScale);
}
M23_Scale(primMtx, primScale);