Adjusted sleep-mode code so that on leaving sleep-mode, GSPGPU_SetLcdForceBlack() is only used when the status was APP_RUNNING(also removed GSPGPU_SetLcdForceBlack call for prepare sleep-mode signal).

This commit is contained in:
yellows8 2014-05-22 14:21:39 -04:00
parent 4260edd6c9
commit 3e69e498bb

View File

@ -214,7 +214,6 @@ void aptEventHandler(u32 arg)
case 0x3: //preparing to enter sleep-mode
aptStatus_beforesleepmode = aptGetStatus();
GSPGPU_SetLcdForceBlack(NULL, 1);
aptOpenSession();
APT_ReplySleepQuery(NULL, currentAppId, 0x1);
aptCloseSession();
@ -234,7 +233,7 @@ void aptEventHandler(u32 arg)
case 0x6: //leaving sleep-mode
if(aptGetStatus()==APP_SLEEPMODE)
{
GSPGPU_SetLcdForceBlack(NULL, 0);
if(aptStatus_beforesleepmode == APP_RUNNING)GSPGPU_SetLcdForceBlack(NULL, 0);
aptSetStatus(aptStatus_beforesleepmode);
}
break;