From: kub Date: Tue, 4 Jan 2022 16:49:24 +0000 (+0100) Subject: core, fix for vdp save/load regression X-Git-Tag: v2.00~382 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6488bec8053ededf30576afff648f979a5851a1f;p=picodrive.git core, fix for vdp save/load regression --- diff --git a/pico/videoport.c b/pico/videoport.c index a667e9c6..72735a6b 100644 --- a/pico/videoport.c +++ b/pico/videoport.c @@ -1157,10 +1157,10 @@ void PicoVideoLoad(void) } // make an entry in the FIFO if there are outstanding transfers vf->fifo_ql = vf->fifo_qx = vf->fifo_total = 0; + vf->fifo_cnt = pv->fifo_cnt; if (pv->fifo_cnt) { int wc = (pv->fifo_cnt + b) >> b; pv->status |= PVS_FIFORUN|PVS_CPUWR; - vf->fifo_cnt = pv->fifo_cnt; if (!(pv->status & PVS_DMABG)) vf->fifo_total = wc; if ((pv->status & SR_DMA) && !(pv->status & PVS_DMAFILL))