From 754cd90f901bc726809f7dc326b1847f35a00598 Mon Sep 17 00:00:00 2001 From: thrust26 Date: Thu, 7 May 2020 23:09:11 +0200 Subject: [PATCH] fix window position saving when changing zoom via hotkey --- docs/index.html | 4 ++-- src/emucore/FrameBuffer.cxx | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/index.html b/docs/index.html index 851aea9dc..82b8c4a38 100644 --- a/docs/index.html +++ b/docs/index.html @@ -1621,13 +1621,13 @@ - Decrease custom palette phase shift (switches to 'Custom' palette) + Decrease 'Custom' palette's phase shift Shift-Control + 9 Shift-Control + 9 - Increase custom palette phase shift (switches to 'Custom' palette) + Increase 'Custom' palette's phase shift Control + 9 Control + 9 diff --git a/src/emucore/FrameBuffer.cxx b/src/emucore/FrameBuffer.cxx index 250a895cf..ce2d4cf46 100644 --- a/src/emucore/FrameBuffer.cxx +++ b/src/emucore/FrameBuffer.cxx @@ -939,6 +939,8 @@ bool FrameBuffer::changeVidMode(int direction) else return false; + saveCurrentWindowPosition(); + // Changing the video mode can take some time, during which the last // sound played may get 'stuck' // So we mute the sound until the operation completes