mirror of
https://github.com/mtheall/ftpd.git
synced 2024-11-23 09:39:43 +00:00
Update for latest libnx gfx/console changes
This commit is contained in:
parent
97081b86d4
commit
a910da0799
@ -217,13 +217,14 @@ console_render(void)
|
||||
print_tcp_table();
|
||||
#endif
|
||||
/* flush framebuffer */
|
||||
gfxFlushBuffers();
|
||||
#ifdef _3DS
|
||||
gfxFlushBuffers();
|
||||
gspWaitForVBlank();
|
||||
#else
|
||||
gfxWaitForVsync();
|
||||
#endif
|
||||
gfxSwapBuffers();
|
||||
#endif
|
||||
#ifdef __SWITCH__
|
||||
consoleUpdate(NULL);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
|
@ -35,8 +35,8 @@ loop(loop_status_t (*callback)(void))
|
||||
#elif defined(__SWITCH__)
|
||||
while(appletMainLoop())
|
||||
{
|
||||
status = callback();
|
||||
console_render();
|
||||
status = callback();
|
||||
if(status != LOOP_CONTINUE)
|
||||
return status;
|
||||
}
|
||||
@ -107,9 +107,7 @@ main(int argc,
|
||||
sdmcWriteSafe(false);
|
||||
/* initialize needed Switch services */
|
||||
#elif defined(__SWITCH__)
|
||||
//gfxInitResolution(644, 480);
|
||||
nifmInitialize();
|
||||
gfxInitDefault();
|
||||
#endif
|
||||
|
||||
/* initialize console subsystem */
|
||||
@ -177,7 +175,7 @@ log_fail:
|
||||
loop(wait_for_b);
|
||||
|
||||
/* deinitialize Switch services */
|
||||
gfxExit();
|
||||
consoleExit(NULL);
|
||||
nifmExit();
|
||||
#endif
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user