Stop re-adjusting gamma after wakeup

This is no longer needed after not re-initializing PDC
This commit is contained in:
Evans Jahja 2024-04-27 14:07:20 +09:00
parent 39c4ec8928
commit 0742129fb4
2 changed files with 5 additions and 6 deletions

@ -1 +1 @@
Subproject commit 15f7b8c5f33695f8f1610b007f10630293081592
Subproject commit 418fb4b59741f61d7439ae3a854631b2c88b201d

View File

@ -42,6 +42,7 @@
#include "arm11/save_type.h"
#include "arm11/patch.h"
#include "arm11/bitmap.h"
#include "arm11/drivers/pdn.h"
#include "arm11/drivers/interrupt.h"
@ -652,17 +653,15 @@ void oafSleep(void)
CODEC_setVolumeOverride(-128);
GFX_sleep();
PDN_sleep();
g_isSleeping = true;
}
void oafWakeup(void)
{
if (!g_isSleeping) return;
GFX_sleepAwake();
// VRAM is cleared upon waking up
// need to readjust screen after waking up
adjustGammaTableForGba();
PDN_wakeup();
GFX_sleepAwake();
LGYCAP_start(LGYCAP_DEV_TOP);
IRQ_enable(IRQ_CDMA_EVENT0);
CODEC_setVolumeOverride(127);