Re: [hatari-devel] Little graphic zoom bug in hatari after memory restore

[ Thread Index | Date Index | More lists.tuxfamily.org/hatari-devel Archives ]


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();
 }

 /**


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/