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

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


Adding the following line (the one marked with +++++) allows to double click on the upper border of hatari window to full size it with zoom enabled again (but the window still doesn't appears full size as it was when I took the snapshot).

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 ?

I mean : is it the way it works on the other platforms ? (and the way it should work on falocn too ?)


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



Le 29/12/2020 à 15:12, Nicolas Pomarède a écrit :
Le 29/12/2020 à 15:05, Laurent Sallafranque a écrit :
After more tests, I just have to uncheck/recheck the resize checkbox from the hatair SDL2 GUI.


this means the falcon's resize value is not taken into account when restoring videl content in a memory snapshot (because in STF mode for exemple, window is correctly restored to its previous zoomed size).

I think some code is missing in VIDEL_MemorySnapShot_Capture when doing a restore

Nicolas


Le 29/12/2020 à 14:57, Nicolas Pomarède a écrit :
Le 29/12/2020 à 14:53, Laurent Sallafranque a écrit :
After a few more tests, I've managed to return to full size after a restore. But for this, I have to go to hatari GUI (Hatari screen options), then uncheck the 3 checkboxes for SDL2, return to hatari, and then return again to the GUI and recheck the 3 checkboxes again. And it works.

Laurent



Hi

I don't know where this comes from, but I already noted that when restoring falcon memory state, the image's zoom is lost (similar to zoom=1)
This problem exists since several hatari versions, it's not recent.
maybe it's only videl related, because TT restores OK, only falcon doesn't.

Nicolas


Le 29/12/2020 à 14:49, Laurent Sallafranque a écrit :
Hi,

While "testing" l'Abbaye des morts (hum hum ;)

I've done a memory save and then a restore memory and there's a little problem with the screen size.


When I launch the game, I "double click" on the upper border of the window to have it taking all the screen size. The game runs on the whole screen.

After the restore, the game "zoom" is lost and the game is displayed at the center of the screen with a lower zoom.

Double clicking on the window, Pressing F11 doesn't change anything, I can't have the game on the full screen again.

Any idea ?

Regards

Laurent
















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