fix fullscreen
This commit is contained in:
		
							
								
								
									
										14
									
								
								src/studio.c
									
									
									
									
									
								
							
							
						
						
									
										14
									
								
								src/studio.c
									
									
									
									
									
								
							@@ -1875,11 +1875,6 @@ Studio* studioInit(s32 argc, char **argv, s32 samplerate, const char* folder, Sy
 | 
				
			|||||||
		setStudioMode(TIC_CONSOLE_MODE);
 | 
							setStudioMode(TIC_CONSOLE_MODE);
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if(impl.console->goFullscreen)
 | 
					 | 
				
			||||||
	{
 | 
					 | 
				
			||||||
		goFullscreen();
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	if(impl.console->crtMonitor)
 | 
						if(impl.console->crtMonitor)
 | 
				
			||||||
	{
 | 
						{
 | 
				
			||||||
		impl.config->data.crtMonitor = true;
 | 
							impl.config->data.crtMonitor = true;
 | 
				
			||||||
@@ -1895,6 +1890,15 @@ Studio* studioInit(s32 argc, char **argv, s32 samplerate, const char* folder, Sy
 | 
				
			|||||||
	return &impl.studio;
 | 
						return &impl.studio;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					void studioInitPost() {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						if(impl.console->goFullscreen)
 | 
				
			||||||
 | 
						{
 | 
				
			||||||
 | 
							goFullscreen();
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
System* getSystem()
 | 
					System* getSystem()
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	return impl.system;
 | 
						return impl.system;
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -101,3 +101,4 @@ typedef struct
 | 
				
			|||||||
} Studio;
 | 
					} Studio;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
TIC80_API Studio* studioInit(s32 argc, char **argv, s32 samplerate, const char* appFolder, System* system);
 | 
					TIC80_API Studio* studioInit(s32 argc, char **argv, s32 samplerate, const char* appFolder, System* system);
 | 
				
			||||||
 | 
					TIC80_API void studioInitPost();
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1455,6 +1455,8 @@ static s32 start(s32 argc, char **argv, const char* folder)
 | 
				
			|||||||
		SDL_GetWindowSize(platform.window, &w, &h);
 | 
							SDL_GetWindowSize(platform.window, &w, &h);
 | 
				
			||||||
		GPU_SetWindowResolution(w, h);
 | 
							GPU_SetWindowResolution(w, h);
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
						
 | 
				
			||||||
 | 
						studioInitPost();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	initTouchGamepad();
 | 
						initTouchGamepad();
 | 
				
			||||||
	initTouchKeyboard();
 | 
						initTouchKeyboard();
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user