shell: improve support for windowed mode (#981)

Resolves #896.
This commit is contained in:
Marcin Kurczewski 2023-09-10 21:18:59 +02:00 committed by GitHub
parent bfab140dfc
commit 4fe7045ce1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
14 changed files with 140 additions and 52 deletions

View file

@ -20,7 +20,6 @@ typedef struct GFX_CONTEXT {
int32_t window_width;
int32_t window_height;
bool is_fullscreen; // fullscreen flag
bool is_rendered; // rendering flag
char *scheduled_screenshot_path;
GFX_FBO_Renderer renderer_fbo;
@ -180,16 +179,6 @@ void GFX_Context_SetVSync(bool vsync)
SDL_GL_SetSwapInterval(vsync);
}
bool GFX_Context_IsFullscreen(void)
{
return m_Context.is_fullscreen;
}
void GFX_Context_SetFullscreen(bool fullscreen)
{
m_Context.is_fullscreen = fullscreen;
}
void GFX_Context_SetWindowSize(int32_t width, int32_t height)
{
LOG_INFO("Window size: %dx%d", width, height);