From c4f36f165b6e50ad4d6af14b904f3d935f237bea Mon Sep 17 00:00:00 2001 From: Michael Theall Date: Wed, 30 Dec 2020 13:36:43 -0500 Subject: [PATCH] libnx updates --- source/switch/imgui_nx.cpp | 4 ++-- source/switch/platform.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/source/switch/imgui_nx.cpp b/source/switch/imgui_nx.cpp index b861d47..bae362e 100644 --- a/source/switch/imgui_nx.cpp +++ b/source/switch/imgui_nx.cpp @@ -1169,7 +1169,7 @@ void handleAppletHook (AppletHookType const hook_, void *const param_) { case AppletHookType_OnFocusState: // grab focus state - s_focused = (appletGetFocusState () == AppletFocusState_Focused); + s_focused = (appletGetFocusState () == AppletFocusState_InFocus); break; case AppletHookType_OnOperationMode: @@ -1182,7 +1182,7 @@ void handleAppletHook (AppletHookType const hook_, void *const param_) s_height = 720.0f; break; - case AppletOperationMode_Docked: + case AppletOperationMode_Console: // use docked mode resolution (1080p) s_width = 1920.0f; s_height = 1080.0f; diff --git a/source/switch/platform.cpp b/source/switch/platform.cpp index 7ddbb63..9d8f61d 100644 --- a/source/switch/platform.cpp +++ b/source/switch/platform.cpp @@ -450,7 +450,7 @@ void handleAppletHook (AppletHookType const hook_, void *const param_) switch (hook_) { case AppletHookType_OnFocusState: - if (appletGetFocusState () == AppletFocusState_Focused) + if (appletGetFocusState () == AppletFocusState_InFocus) appletSetLcdBacklightOffEnabled (!s_backlight); break;