mirror of
https://github.com/switchbrew/switch-examples.git
synced 2025-06-21 05:12:40 +02:00
Updated for libnx applet changes.
This commit is contained in:
parent
ce7c9a99ea
commit
78b1ed515e
@ -20,7 +20,7 @@ void CApplication::run()
|
|||||||
{
|
{
|
||||||
u64 tick_ref = armGetSystemTick();
|
u64 tick_ref = armGetSystemTick();
|
||||||
u64 tick_saved = tick_ref;
|
u64 tick_saved = tick_ref;
|
||||||
bool focused = appletGetFocusState() == AppletFocusState_Focused;
|
bool focused = appletGetFocusState() == AppletFocusState_InFocus;
|
||||||
|
|
||||||
onOperationMode(appletGetOperationMode());
|
onOperationMode(appletGetOperationMode());
|
||||||
|
|
||||||
@ -40,7 +40,7 @@ void CApplication::run()
|
|||||||
{
|
{
|
||||||
bool old_focused = focused;
|
bool old_focused = focused;
|
||||||
AppletFocusState state = appletGetFocusState();
|
AppletFocusState state = appletGetFocusState();
|
||||||
focused = state == AppletFocusState_Focused;
|
focused = state == AppletFocusState_InFocus;
|
||||||
|
|
||||||
onFocusState(state);
|
onFocusState(state);
|
||||||
if (focused == old_focused)
|
if (focused == old_focused)
|
||||||
|
@ -30,7 +30,7 @@ constexpr void CApplication::chooseFramebufferSize(uint32_t& width, uint32_t& he
|
|||||||
width = 1280;
|
width = 1280;
|
||||||
height = 720;
|
height = 720;
|
||||||
break;
|
break;
|
||||||
case AppletOperationMode_Docked:
|
case AppletOperationMode_Console:
|
||||||
width = 1920;
|
width = 1920;
|
||||||
height = 1080;
|
height = 1080;
|
||||||
break;
|
break;
|
||||||
|
@ -464,7 +464,7 @@ static void configureResolution(NWindow* win, bool halved)
|
|||||||
width = 1280;
|
width = 1280;
|
||||||
height = 720;
|
height = 720;
|
||||||
break;
|
break;
|
||||||
case AppletOperationMode_Docked:
|
case AppletOperationMode_Console:
|
||||||
width = 1920;
|
width = 1920;
|
||||||
height = 1080;
|
height = 1080;
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user