fix fullscreen

This commit is contained in:
cuu 2019-02-23 03:42:01 +08:00
parent 528bb40b4f
commit a039b87348
3 changed files with 12 additions and 5 deletions

View File

@ -1875,11 +1875,6 @@ Studio* studioInit(s32 argc, char **argv, s32 samplerate, const char* folder, Sy
setStudioMode(TIC_CONSOLE_MODE);
}
if(impl.console->goFullscreen)
{
goFullscreen();
}
if(impl.console->crtMonitor)
{
impl.config->data.crtMonitor = true;
@ -1895,6 +1890,15 @@ Studio* studioInit(s32 argc, char **argv, s32 samplerate, const char* folder, Sy
return &impl.studio;
}
void studioInitPost() {
if(impl.console->goFullscreen)
{
goFullscreen();
}
}
System* getSystem()
{
return impl.system;

View File

@ -101,3 +101,4 @@ typedef struct
} Studio;
TIC80_API Studio* studioInit(s32 argc, char **argv, s32 samplerate, const char* appFolder, System* system);
TIC80_API void studioInitPost();

View File

@ -1456,6 +1456,8 @@ static s32 start(s32 argc, char **argv, const char* folder)
GPU_SetWindowResolution(w, h);
}
studioInitPost();
initTouchGamepad();
initTouchKeyboard();