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

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


Hi,

Memory state save/restore is about *emulation* state, not emulator state.

Hatari window scale factor / state are in no way related to emulation, only emulator (SDL2) state.

Memory state files could be from another machine, old etc, so such external factors don't belong to it, those are supposed to come from you normal Hatari settings.

	- Eero

On 12/30/20 12:01 PM, Laurent Sallafranque wrote:
No, it doesn't work. When I restore, the screen it completly glitchy with your patch.

The best patch I have for now is given just above, but it doesn't restore the full size of the window, nor the fullscreen mode if I saved the memory in fullscreen (but it allows to resize, which is much better than before).


/**
 * Save/Restore snapshot of local variables ('MemorySnapShot_Store' handles type)
  */
void VIDEL_MemorySnapShot_Capture(bool bSave)
{
     /* Save/Restore details */
     MemorySnapShot_Store(&videl, sizeof(videl));

+    if (!bSave)
+       Videl_ScreenModeChanged(true);
}


Regards

Laurent


Le 30/12/2020 à 09:56, Jens Guenther a écrit :
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





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