mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-25 23:07:18 +00:00
[client] fixed autoResize behaviour
This commit is contained in:
parent
f8d61da618
commit
f6bc62647f
@ -207,10 +207,11 @@ int renderThread(void * unused)
|
|||||||
|
|
||||||
// update the window size and create the render texture
|
// update the window size and create the render texture
|
||||||
if (params.autoResize)
|
if (params.autoResize)
|
||||||
|
{
|
||||||
SDL_SetWindowSize(state.window, state.shm->width, state.shm->height);
|
SDL_SetWindowSize(state.window, state.shm->width, state.shm->height);
|
||||||
|
if (params.center)
|
||||||
if (params.center)
|
SDL_SetWindowPosition(state.window, SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED);
|
||||||
SDL_SetWindowPosition(state.window, SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED);
|
}
|
||||||
|
|
||||||
if (state.hasBufferStorage)
|
if (state.hasBufferStorage)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user