mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 23:37:46 -04:00
vdp, fix for loading saved gfx state
This commit is contained in:
parent
59642c52e6
commit
7c5227a490
1 changed files with 1 additions and 2 deletions
|
@ -166,7 +166,6 @@ static int PicoVideoFIFODrain(int level, int cycles, int bgdma)
|
||||||
struct PicoVideo *pv = &Pico.video;
|
struct PicoVideo *pv = &Pico.video;
|
||||||
unsigned ocyc = cycles;
|
unsigned ocyc = cycles;
|
||||||
int burn = 0;
|
int burn = 0;
|
||||||
//int osl = fifo_slot;
|
|
||||||
|
|
||||||
// process FIFO entries until low level is reached
|
// 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 &&
|
||||||
|
@ -1042,7 +1041,7 @@ void PicoVideoLoad(void)
|
||||||
|
|
||||||
// convert former dma_xfers (why was this in PicoMisc anyway?)
|
// convert former dma_xfers (why was this in PicoMisc anyway?)
|
||||||
if (Pico.m.dma_xfers) {
|
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);
|
pv->fifo_cnt = Pico.m.dma_xfers * (pv->type == 1 ? 2 : 1);
|
||||||
vf->fifo_total = Pico.m.dma_xfers;
|
vf->fifo_total = Pico.m.dma_xfers;
|
||||||
Pico.m.dma_xfers = 0;
|
Pico.m.dma_xfers = 0;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue