Update for latest libnx gfx/console changes

This commit is contained in:
fincs 2018-12-19 20:07:11 +01:00
parent 97081b86d4
commit a910da0799
2 changed files with 7 additions and 8 deletions

View File

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

View File

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