From cf92decff4ef57161032df5c26eb45ce564839c3 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Fri, 16 Aug 2013 21:41:40 -0700 Subject: [PATCH] Fix new UI at 1x resolution. --- Core/Core.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Core/Core.cpp b/Core/Core.cpp index fa1eb8d40..cb5b365a7 100644 --- a/Core/Core.cpp +++ b/Core/Core.cpp @@ -95,17 +95,19 @@ void Core_WaitInactive(int milliseconds) void UpdateScreenScale() { dp_xres = PSP_CoreParameter().pixelWidth; dp_yres = PSP_CoreParameter().pixelHeight; + pixel_xres = PSP_CoreParameter().pixelWidth; + pixel_yres = PSP_CoreParameter().pixelHeight; + g_dpi = 72; + g_dpi_scale = 1.0f; #ifdef _WIN32 if (g_Config.iWindowZoom == 1) { dp_xres *= 2; dp_yres *= 2; + g_dpi_scale = 2.0f; } + else #endif - pixel_xres = PSP_CoreParameter().pixelWidth; - pixel_yres = PSP_CoreParameter().pixelHeight; - g_dpi = 72; - g_dpi_scale = 1.0f; pixel_in_dps = (float)pixel_xres / dp_xres; }