From: kub Date: Sun, 21 Jun 2020 20:32:37 +0000 (+0200) Subject: vdp fifo, DMA bugfix X-Git-Tag: v2.00~731 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bb83412c51929e6bf83bc1aceec2a2d0ed9fb037;p=picodrive.git vdp fifo, DMA bugfix --- diff --git a/pico/videoport.c b/pico/videoport.c index f9fd6ece..f324f704 100644 --- a/pico/videoport.c +++ b/pico/videoport.c @@ -164,7 +164,7 @@ static int PicoVideoFIFODrain(int level, int cycles, int bgdma) //int osl = fifo_slot; // process FIFO entries until low level is reached - while (vf->fifo_slot < vf->fifo_maxslot && cycles < 488 && + while (vf->fifo_slot <= vf->fifo_maxslot && cycles < 488 && ((vf->fifo_total > level) | (vf->fifo_queue[vf->fifo_qx] & bgdma))) { int b = vf->fifo_queue[vf->fifo_qx] & FQ_BYTE; int cnt = bgdma ? pv->fifo_cnt : ((vf->fifo_total-level)<fifo_cnt&b);