Skip to content

Commit

Permalink
Updated for libnx applet changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
yellows8 committed Dec 16, 2020
1 parent ce7c9a9 commit 78b1ed5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ void CApplication::run()
{
u64 tick_ref = armGetSystemTick();
u64 tick_saved = tick_ref;
bool focused = appletGetFocusState() == AppletFocusState_Focused;
bool focused = appletGetFocusState() == AppletFocusState_InFocus;

onOperationMode(appletGetOperationMode());

Expand All @@ -40,7 +40,7 @@ void CApplication::run()
{
bool old_focused = focused;
AppletFocusState state = appletGetFocusState();
focused = state == AppletFocusState_Focused;
focused = state == AppletFocusState_InFocus;

onFocusState(state);
if (focused == old_focused)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ constexpr void CApplication::chooseFramebufferSize(uint32_t& width, uint32_t& he
width = 1280;
height = 720;
break;
case AppletOperationMode_Docked:
case AppletOperationMode_Console:
width = 1920;
height = 1080;
break;
Expand Down
2 changes: 1 addition & 1 deletion graphics/opengl/dynamic_resolution/source/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@ static void configureResolution(NWindow* win, bool halved)
width = 1280;
height = 720;
break;
case AppletOperationMode_Docked:
case AppletOperationMode_Console:
width = 1920;
height = 1080;
break;
Expand Down

0 comments on commit 78b1ed5

Please sign in to comment.