From: kub Date: Mon, 14 Dec 2020 20:12:25 +0000 (+0100) Subject: vdp, fix for loading saved gfx state X-Git-Tag: v2.00~633 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7c5227a4902d4472e5523401ca00c3100cdeecac;p=picodrive.git vdp, fix for loading saved gfx state --- 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;