libnx updates

This commit is contained in:
Michael Theall 2020-12-30 13:36:43 -05:00
parent 709e24d458
commit c4f36f165b
2 changed files with 3 additions and 3 deletions

View File

@ -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;

View File

@ -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;