From a96be2cdceb8fff2fe0267ac89faf53456269833 Mon Sep 17 00:00:00 2001 From: Justin Weiss Date: Fri, 28 Feb 2020 23:01:22 -0800 Subject: [PATCH] [3DS] Keep the bottom screen hidden on sleep/wakeup When the 3DS wakes back up after being closed, the bottom screen needs to be reinitialized. Adding the condition here will cause the screen to be turned on or off based on the state of ctr_bottom_screen_enabled, as you'd expect. --- gfx/drivers/ctr_gfx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gfx/drivers/ctr_gfx.c b/gfx/drivers/ctr_gfx.c index 96fd377d97..a1aa2d9d3b 100644 --- a/gfx/drivers/ctr_gfx.c +++ b/gfx/drivers/ctr_gfx.c @@ -273,7 +273,7 @@ static void ctr_lcd_aptHook(APT_HookType hook, void* param) if ((hook == APTHOOK_ONSUSPEND) && ctr->supports_parallax_disable) ctr_set_parallax_layer(*(float*)0x1FF81080 != 0.0); - if((hook == APTHOOK_ONSUSPEND) || (hook == APTHOOK_ONRESTORE)) + if((hook == APTHOOK_ONSUSPEND) || (hook == APTHOOK_ONRESTORE) || (hook == APTHOOK_ONWAKEUP)) { Handle lcd_handle; u8 not_2DS;