From 8a2b50af64a4dae9bc07309881d673f9a714d8d3 Mon Sep 17 00:00:00 2001 From: Henrik Rydgard Date: Mon, 10 Feb 2014 16:22:16 +0100 Subject: [PATCH] Fix bug causing the screen to go blank when resizing the window using scale factors on Windows. --- UI/NativeApp.cpp | 2 -- Windows/WndMainWindow.cpp | 6 ++++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/UI/NativeApp.cpp b/UI/NativeApp.cpp index cee8b9b715..fbad008ee8 100644 --- a/UI/NativeApp.cpp +++ b/UI/NativeApp.cpp @@ -750,11 +750,9 @@ void NativeAxis(const AxisInput &key) { float xSensitivity = g_Config.iTiltSensitivityX / 50.0; float ySensitivity = g_Config.iTiltSensitivityY / 50.0; - //now transform out current tilt to the calibrated coordinate system Tilt trueTilt = GenTilt(baseTilt, currentTilt, g_Config.bInvertTiltX, g_Config.bInvertTiltY, g_Config.fDeadzoneRadius, xSensitivity, ySensitivity); - //now send the appropriate tilt event switch (g_Config.iTiltInputType) { case TILT_ANALOG: diff --git a/Windows/WndMainWindow.cpp b/Windows/WndMainWindow.cpp index 5377fe66c5..88e5617d33 100644 --- a/Windows/WndMainWindow.cpp +++ b/Windows/WndMainWindow.cpp @@ -242,8 +242,10 @@ namespace MainWindow osm.Show(g->T(message), 2.0f); } - UpdateScreenScale(width, height); - NativeMessageReceived("gpu resized", ""); + if (!noWindowMovement) { + UpdateScreenScale(width, height); + NativeMessageReceived("gpu resized", ""); + } } void SetWindowSize(int zoom) {