- Fixed bugs reported by masscat here:

http://sourceforge.net/tracker/index.php?func=detail&aid=1661684&group_id=164579&atid=832291
and here:
http://sourceforge.net/tracker/index.php?func=detail&aid=1661661&group_id=164579&atid=832291
It fixes homebrew Tetris and probably a lot of others
This commit is contained in:
shashclp 2007-02-18 00:14:53 +00:00
parent 217d5c5393
commit 2e7ea2767e
1 changed files with 7 additions and 5 deletions

View File

@ -241,14 +241,16 @@ int NDS_CreateDummyFirmware(void);
{
if(!nds.lignerendu)
{
if(nds.VCount<192)
{
GPU_ligne(&MainScreen, nds.VCount);
GPU_ligne(&SubScreen, nds.VCount);
T1WriteWord(ARM9Mem.ARM9_REG, 4, T1ReadWord(ARM9Mem.ARM9_REG, 4) | 2);
T1WriteWord(MMU.ARM7_REG, 4, T1ReadWord(MMU.ARM7_REG, 4) | 2);
NDS_ARM9HBlankInt();
NDS_ARM7HBlankInt();
if(nds.VCount<192)
{
GPU_ligne(&MainScreen, nds.VCount);
GPU_ligne(&SubScreen, nds.VCount);
if(MMU.DMAStartTime[0][0] == 2)
MMU_doDMA(0, 0);
if(MMU.DMAStartTime[0][1] == 2)
@ -322,7 +324,7 @@ int NDS_CreateDummyFirmware(void);
}
nds.lignerendu = FALSE;
if(nds.VCount==193)
if(nds.VCount==192)
{
T1WriteWord(ARM9Mem.ARM9_REG, 4, T1ReadWord(ARM9Mem.ARM9_REG, 4) | 1);
T1WriteWord(MMU.ARM7_REG, 4, T1ReadWord(MMU.ARM7_REG, 4) | 1);