diff options
| author | aura <nw@moneybot.cc> | 2026-03-05 02:44:17 +0100 |
|---|---|---|
| committer | aura <nw@moneybot.cc> | 2026-03-05 02:44:17 +0100 |
| commit | 784d6e46884f47c5d7c02380a1bbf09747bbd047 (patch) | |
| tree | 32f18d908e63cfd65b57471933090f044b0f7c78 /src | |
| parent | 8301b438f450b5210f93d027b27bcd3a5171fbf1 (diff) | |
fix resize on linux
Diffstat (limited to 'src')
| -rw-r--r-- | src/render/gl.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/render/gl.cpp b/src/render/gl.cpp index d18cd53..f2c8f8c 100644 --- a/src/render/gl.cpp +++ b/src/render/gl.cpp @@ -261,7 +261,8 @@ void gl_update_window( GL_DATA* gl, I32* size ) { I32 height = size ? size[1] : 0; gl_constrain_window_size( &width, &height ); SDL_SetWindowSize( gl->window, width, height ); - SDL_SetWindowPosition( gl->window, SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED ); + // this giga breaks on linux, is it needed? + // SDL_SetWindowPosition( gl->window, SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED ); gl_handle_window_size_change( gl, width, height ); } |
