fixes to the threadedness of the sw rasteriser

also fix #639 and fix #880
This commit is contained in:
RSDuck
2021-01-26 16:42:27 +01:00
parent ab222ab135
commit b78bc4cb66
8 changed files with 40 additions and 16 deletions

View File

@ -1018,8 +1018,8 @@ u32 RunFrame()
if (CPUStop & 0x40000000)
{
// checkme: when is sleep mode effective?
//CancelEvent(Event_LCD);
//GPU::TotalScanlines = 263;
CancelEvent(Event_LCD);
GPU::TotalScanlines = 263;
break;
}
}
@ -1163,6 +1163,7 @@ void SetLidClosed(bool closed)
KeyInput &= ~(1<<23);
SetIRQ(1, IRQ_LidOpen);
CPUStop &= ~0x40000000;
GPU3D::RestartFrame();
}
}