winport - fix layout/scaling of HD windows in some cases

This commit is contained in:
zeromus 2015-09-21 21:13:13 +00:00
parent 584c334c08
commit 0535b9f874
1 changed files with 4 additions and 0 deletions

View File

@ -676,6 +676,10 @@ void ScaleScreen(float factor, bool user)
factor = 1.5f;
else if(factor==kScale2point5x)
factor = 2.5f;
//don't incorporate prescale into these calculations
factor /= video.prescaleHD;
if (video.layout == 0)
MainWindow->setClientSize((int)(video.rotatedwidthgap() * factor), (int)(video.rotatedheightgap() * factor));
else