[client] main: fix failure to obey win:autoResize

This commit is contained in:
Geoffrey McRae 2021-05-05 23:17:15 +10:00
parent 0f2fd84724
commit 9dd11b5e04

View file

@ -160,10 +160,13 @@ static int renderThread(void * unused)
const uint64_t now = microtime(); const uint64_t now = microtime();
if (!g_state.resizeDone && g_state.resizeTimeout < now) if (!g_state.resizeDone && g_state.resizeTimeout < now)
{ {
g_state.ds->setWindowSize( if (g_params.autoResize)
g_state.dstRect.w, {
g_state.dstRect.h g_state.ds->setWindowSize(
); g_state.dstRect.w,
g_state.dstRect.h
);
}
g_state.resizeDone = true; g_state.resizeDone = true;
} }