Merge pull request #1282 from gal20/scale_fix

Fix screen scaling error
This commit is contained in:
Nadia Holmquist Pedersen 2022-10-04 20:40:00 +02:00 committed by GitHub
commit aa9a6ceed5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -868,9 +868,9 @@ QSize ScreenHandler::screenGetMinSize(int factor = 1)
else // hybrid
{
if (isHori)
return QSize(h+gap+h, 3*w +(4*gap) / 3);
return QSize(h+gap+h, 3*w + (int)ceil((4*gap) / 3.0));
else
return QSize(3*w +(4*gap) / 3, h+gap+h);
return QSize(3*w + (int)ceil((4*gap) / 3.0), h+gap+h);
}
}