mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-15 05:23:02 +00:00
parent
507732587e
commit
1d3a23e051
1 changed files with 3 additions and 0 deletions
|
@ -862,6 +862,9 @@ int run()
|
||||||
if (!params.center)
|
if (!params.center)
|
||||||
SDL_SetWindowPosition(state.window, params.x, params.y);
|
SDL_SetWindowPosition(state.window, params.x, params.y);
|
||||||
|
|
||||||
|
// ensure the initial window size is stored in the state
|
||||||
|
SDL_GetWindowSize(state.window, &state.windowW, &state.windowH);
|
||||||
|
|
||||||
// set the compositor hint to bypass for low latency
|
// set the compositor hint to bypass for low latency
|
||||||
SDL_SysWMinfo wminfo;
|
SDL_SysWMinfo wminfo;
|
||||||
SDL_VERSION(&wminfo.version);
|
SDL_VERSION(&wminfo.version);
|
||||||
|
|
Loading…
Reference in a new issue