| Re: [hatari-devel] Little graphic zoom bug in hatari after memory restore | 
[ Thread Index | 
Date Index
| More lists.tuxfamily.org/hatari-devel Archives
] 
- To: hatari-devel@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [hatari-devel] Little graphic zoom bug in hatari after memory restore
- From: Jens Guenther <dbotw@xxxxxxx>
- Date: Wed, 30 Dec 2020 09:56:22 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net;	s=badeba3b8450; t=1609318582;	bh=49OPxPT6/QDtX95tpEQr8oVNBXyXWP25kA965Kpa7O0=;	h=X-UI-Sender-Class:Date:From:To:Subject:In-Reply-To:References;	b=TzQuYem36SY9e2ilEtSkMQOZEPKEuR7QAtSWfag6NcSGYDNci8B3x+v3Z7oo1pd4i	 NgQwFfFrezdrne4X+CGuiCEbL9jYLGQxqNPo6zY0SSD2gdeKDQ/aEGsuWSsIbciU6K	 dxIkhKOSQBw2HaK7GgoRCbBO9KC/SjGHXYxbl5Vk=
Hi,
Laurent Sallafranque <laurent.sallafranque@xxxxxxx> wrote:
> That's a bit better like this. Is there a way to have the window open at
> the same size as it was when I took the snapshot ?
Does the attached patch help?
Jens
diff --git a/src/falcon/videl.c b/src/falcon/videl.c
index cf5ce874..c0a79d77 100644
--- a/src/falcon/videl.c
+++ b/src/falcon/videl.c
@@ -151,6 +151,8 @@ void VIDEL_MemorySnapShot_Capture(bool bSave)
 {
 	/* Save/Restore details */
 	MemorySnapShot_Store(&videl, sizeof(videl));
+	if (!bSave)
+		VIDEL_reset();
 }
 /**