From 1d71a7d4b7e7c1d7d0fd67ae6b14c2dd8d3c4b1a Mon Sep 17 00:00:00 2001 From: zeromus Date: Mon, 26 Jan 2009 07:02:50 +0000 Subject: [PATCH] check me crazymax: it is a shame to have to memset the fifo so often. would it be sufficient just to reset the tail? --- desmume/src/FIFO.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/desmume/src/FIFO.cpp b/desmume/src/FIFO.cpp index a0554ad5b..573caba79 100644 --- a/desmume/src/FIFO.cpp +++ b/desmume/src/FIFO.cpp @@ -142,7 +142,8 @@ void GFX_FIFOclear() u32 gxstat = T1ReadLong(MMU.MMU_MEM[ARMCPU_ARM9][0x40], 0x600); gxstat &= 0x0000FFFF; - memset(&gxFIFO, 0, sizeof(GFX_FIFO)); + //memset(&gxFIFO, 0, sizeof(GFX_FIFO)); + gxFIFO.tail = 0; gxstat |= 0x06000000; gxstat |= 0x00000002; // this is hack T1WriteLong(MMU.MMU_MEM[ARMCPU_ARM9][0x40], 0x600, gxstat);