- opps I broke display FIFO. fixed :)
This commit is contained in:
parent
9f6ed6db93
commit
16eee0c416
|
@ -192,7 +192,7 @@ void DISP_FIFOsend(u32 val)
|
||||||
|
|
||||||
u32 DISP_FIFOrecv()
|
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];
|
u32 val = disp_fifo.buf[disp_fifo.head];
|
||||||
disp_fifo.head++;
|
disp_fifo.head++;
|
||||||
if (disp_fifo.head > 0x5FFF)
|
if (disp_fifo.head > 0x5FFF)
|
||||||
|
|
|
@ -3376,7 +3376,7 @@ void GPU_ligne(NDS_Screen * screen, u16 l)
|
||||||
if (gpu->core == GPU_MAIN)
|
if (gpu->core == GPU_MAIN)
|
||||||
{
|
{
|
||||||
GPU_ligne_DispCapture(l);
|
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);
|
GPU_ligne_MasterBrightness(screen, l);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue