From 0535b9f87437ae7cb785c3542e408033853c03e1 Mon Sep 17 00:00:00 2001 From: zeromus Date: Mon, 21 Sep 2015 21:13:13 +0000 Subject: [PATCH] winport - fix layout/scaling of HD windows in some cases --- desmume/src/windows/main.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/desmume/src/windows/main.cpp b/desmume/src/windows/main.cpp index 68d806671..e16f0452b 100644 --- a/desmume/src/windows/main.cpp +++ b/desmume/src/windows/main.cpp @@ -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