Fix bug causing the screen to go blank when resizing the window using scale factors on Windows.

This commit is contained in:
Henrik Rydgard 2014-02-10 16:22:16 +01:00
parent 984554fe7c
commit 8a2b50af64
2 changed files with 4 additions and 4 deletions

View file

@ -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:

View file

@ -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) {