- opps I broke display FIFO. fixed :)

This commit is contained in:
mtabachenko 2009-01-20 22:03:55 +00:00
parent 9f6ed6db93
commit 16eee0c416
2 changed files with 2 additions and 2 deletions

View File

@ -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)

View File

@ -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);
}