Windows Port: Fix bug where using a fixed window size for the display window would cause the display window to get shrunk by the GPU Scaling Factor. (Regression from commit d5e4ed5.)

This commit is contained in:
rogerman
2025-10-02 16:06:59 -07:00
parent 588b1ad15f
commit 2ab82a6c06

View File

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