From 16eee0c416d8917600d9928a3de86f68fab4ef79 Mon Sep 17 00:00:00 2001 From: mtabachenko Date: Tue, 20 Jan 2009 22:03:55 +0000 Subject: [PATCH] - opps I broke display FIFO. fixed :) --- desmume/src/FIFO.cpp | 2 +- desmume/src/GPU.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/desmume/src/FIFO.cpp b/desmume/src/FIFO.cpp index f3293d480..e88ab76a0 100644 --- a/desmume/src/FIFO.cpp +++ b/desmume/src/FIFO.cpp @@ -192,7 +192,7 @@ void DISP_FIFOsend(u32 val) u32 DISP_FIFOrecv() { - if (disp_fifo.tail == disp_fifo.head) return (0); // FIFO is empty + //if (disp_fifo.tail == disp_fifo.head) return (0); // FIFO is empty u32 val = disp_fifo.buf[disp_fifo.head]; disp_fifo.head++; if (disp_fifo.head > 0x5FFF) diff --git a/desmume/src/GPU.cpp b/desmume/src/GPU.cpp index 398357060..7a00a5aa3 100644 --- a/desmume/src/GPU.cpp +++ b/desmume/src/GPU.cpp @@ -3376,7 +3376,7 @@ void GPU_ligne(NDS_Screen * screen, u16 l) if (gpu->core == GPU_MAIN) { GPU_ligne_DispCapture(l); - if (l == 192) { disp_fifo.head = disp_fifo.tail = 0; } + if (l == 191) { disp_fifo.head = disp_fifo.tail = 0; } } GPU_ligne_MasterBrightness(screen, l); }