(Windows Frontend) Fix window size increase on startup if screen size ratio > 1
Fix missing division in ScaleScreen function which caused window size to increase on each startup if screen size ratio > 1.
This commit is contained in:
parent
6fd23368ce
commit
8cbdc339f2
|
@ -675,7 +675,7 @@ void ScaleScreen(float factor, bool user)
|
||||||
else
|
else
|
||||||
if (video.layout == 1)
|
if (video.layout == 1)
|
||||||
{
|
{
|
||||||
w1x = video.rotatedwidthgap() * 2;
|
w1x = video.rotatedwidthgap() * 2 / screenSizeRatio;
|
||||||
h1x = video.rotatedheightgap() / 2;
|
h1x = video.rotatedheightgap() / 2;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue