From 52a8cd5fdb7cd8b74547f2850f474a20ab317124 Mon Sep 17 00:00:00 2001 From: Anders Jenbo Date: Sat, 3 Oct 2020 18:43:51 +0200 Subject: [PATCH] Fix crash when original aspect ratio is used with upscaling Fixes #845 --- SourceX/display.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SourceX/display.cpp b/SourceX/display.cpp index 97cd29017..61f053316 100644 --- a/SourceX/display.cpp +++ b/SourceX/display.cpp @@ -145,8 +145,8 @@ bool SpawnWindow(const char *lpWindowName) if (upscale && !oar) { CalculatePreferdWindowSize(width, height, integerScalingEnabled); - AdjustToScreenGeometry(width, height); } + AdjustToScreenGeometry(width, height); #ifdef USE_SDL1 if (upscale) {