From 7c5227a4902d4472e5523401ca00c3100cdeecac Mon Sep 17 00:00:00 2001 From: kub Date: Mon, 14 Dec 2020 21:12:25 +0100 Subject: [PATCH] vdp, fix for loading saved gfx state --- pico/videoport.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pico/videoport.c b/pico/videoport.c index 234d3771..e8604c33 100644 --- a/pico/videoport.c +++ b/pico/videoport.c @@ -166,7 +166,6 @@ static int PicoVideoFIFODrain(int level, int cycles, int bgdma) struct PicoVideo *pv = &Pico.video; unsigned ocyc = cycles; int burn = 0; -//int osl = fifo_slot; // process FIFO entries until low level is reached while (vf->fifo_slot <= vf->fifo_maxslot && cycles < 488 && @@ -1042,7 +1041,7 @@ void PicoVideoLoad(void) // convert former dma_xfers (why was this in PicoMisc anyway?) if (Pico.m.dma_xfers) { - pv->status = SR_DMA|PVS_FIFORUN; + pv->status |= SR_DMA|PVS_FIFORUN; pv->fifo_cnt = Pico.m.dma_xfers * (pv->type == 1 ? 2 : 1); vf->fifo_total = Pico.m.dma_xfers; Pico.m.dma_xfers = 0; -- 2.39.5