Skip to content

Commit 78b1ed5

Browse files
committed
Updated for libnx applet changes.
1 parent ce7c9a9 commit 78b1ed5

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

graphics/deko3d/deko_examples/source/SampleFramework/CApplication.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ void CApplication::run()
2020
{
2121
u64 tick_ref = armGetSystemTick();
2222
u64 tick_saved = tick_ref;
23-
bool focused = appletGetFocusState() == AppletFocusState_Focused;
23+
bool focused = appletGetFocusState() == AppletFocusState_InFocus;
2424

2525
onOperationMode(appletGetOperationMode());
2626

@@ -40,7 +40,7 @@ void CApplication::run()
4040
{
4141
bool old_focused = focused;
4242
AppletFocusState state = appletGetFocusState();
43-
focused = state == AppletFocusState_Focused;
43+
focused = state == AppletFocusState_InFocus;
4444

4545
onFocusState(state);
4646
if (focused == old_focused)

graphics/deko3d/deko_examples/source/SampleFramework/CApplication.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ constexpr void CApplication::chooseFramebufferSize(uint32_t& width, uint32_t& he
3030
width = 1280;
3131
height = 720;
3232
break;
33-
case AppletOperationMode_Docked:
33+
case AppletOperationMode_Console:
3434
width = 1920;
3535
height = 1080;
3636
break;

graphics/opengl/dynamic_resolution/source/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,7 @@ static void configureResolution(NWindow* win, bool halved)
464464
width = 1280;
465465
height = 720;
466466
break;
467-
case AppletOperationMode_Docked:
467+
case AppletOperationMode_Console:
468468
width = 1920;
469469
height = 1080;
470470
break;

0 commit comments

Comments
 (0)