From 8cbdc339f2a3a8268a72fa28c3faae3fede8339e Mon Sep 17 00:00:00 2001 From: retr0s4ge Date: Sat, 21 Jul 2018 00:00:54 +0200 Subject: [PATCH] (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. --- desmume/src/frontend/windows/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/desmume/src/frontend/windows/main.cpp b/desmume/src/frontend/windows/main.cpp index a92eec6c9..fc76d0c3d 100755 --- a/desmume/src/frontend/windows/main.cpp +++ b/desmume/src/frontend/windows/main.cpp @@ -675,7 +675,7 @@ void ScaleScreen(float factor, bool user) else if (video.layout == 1) { - w1x = video.rotatedwidthgap() * 2; + w1x = video.rotatedwidthgap() * 2 / screenSizeRatio; h1x = video.rotatedheightgap() / 2; } else