[client] fixed autoResize behaviour

This commit is contained in:
Geoffrey McRae committed 2017-12-12 03:59:56 +11:00
1 parent f8d61da618
commit f6bc62647f
1 file changed
+4 -3
+4 -3
View File
@@ -207,10 +207,11 @@ int renderThread(void * unused)
// update the window size and create the render texture
if (params.autoResize)
{
SDL_SetWindowSize(state.window, state.shm->width, state.shm->height);
if (params.center)
SDL_SetWindowPosition(state.window, SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED);
if (params.center)
SDL_SetWindowPosition(state.window, SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED);
}
if (state.hasBufferStorage)
{