[hatari-devel] pVideoRaster in memory snapshot?

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


Hi Nicolas,

Why this ignores the stored "pVideoRaster" value and restores it instead to "VideoBase" variable STRam offset?
-------------------------
void Video_MemorySnapShot_Capture(bool bSave)
{
        Uint32  addr;
....
        MemorySnapShot_Store(&VideoBase, sizeof(VideoBase));
        if ( bSave )
        {
                addr = pVideoRaster - STRam;
                MemorySnapShot_Store(&addr, sizeof(addr));
        }
        else
        {
                MemorySnapShot_Store(&addr, sizeof(addr));
                pVideoRaster = &STRam[VideoBase];
        }
-------------------------

(If it's intentional, there should be a comment about the reason.)


	- Eero



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