Commit f271bdf3 authored by RSDuck's avatar RSDuck
Browse files

fix #906

parent e02bbcb3
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment