Run Vblank and Hblank DMAs

This commit is contained in:
Jeffrey Pfau 2013-04-25 01:50:28 -07:00
parent e9e29610a4
commit cea8109c06
1 changed files with 2 additions and 2 deletions

View File

@ -73,7 +73,7 @@ int32_t GBAVideoProcessEvents(struct GBAVideo* video, int32_t cycles) {
video->inVblank = 1; video->inVblank = 1;
video->renderer->finishFrame(video->renderer); video->renderer->finishFrame(video->renderer);
video->nextVblankIRQ = video->nextEvent + VIDEO_TOTAL_LENGTH; video->nextVblankIRQ = video->nextEvent + VIDEO_TOTAL_LENGTH;
//video->cpu.mmu.runVblankDmas(); GBAMemoryRunVblankDMAs(&video->p->memory);
if (video->vblankIRQ) { if (video->vblankIRQ) {
GBARaiseIRQ(video->p, IRQ_VBLANK); GBARaiseIRQ(video->p, IRQ_VBLANK);
} }
@ -106,7 +106,7 @@ int32_t GBAVideoProcessEvents(struct GBAVideo* video, int32_t cycles) {
video->nextHblankIRQ = video->nextHblank; video->nextHblankIRQ = video->nextHblank;
if (video->vcount < VIDEO_VERTICAL_PIXELS) { if (video->vcount < VIDEO_VERTICAL_PIXELS) {
//video->cpu.mmu.runHblankDmas(); GBAMemoryRunHblankDMAs(&video->p->memory);
} }
if (video->hblankIRQ) { if (video->hblankIRQ) {
GBARaiseIRQ(video->p, IRQ_HBLANK); GBARaiseIRQ(video->p, IRQ_HBLANK);