mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-26 07:17:23 +00:00
[client] update dimension information after the first frame
This commit is contained in:
parent
e5f86a824a
commit
e3a426f378
@ -121,6 +121,9 @@ struct AppParams params =
|
|||||||
|
|
||||||
static inline void updatePositionInfo()
|
static inline void updatePositionInfo()
|
||||||
{
|
{
|
||||||
|
if (!state.started)
|
||||||
|
return;
|
||||||
|
|
||||||
int w, h;
|
int w, h;
|
||||||
SDL_GetWindowSize(state.window, &w, &h);
|
SDL_GetWindowSize(state.window, &w, &h);
|
||||||
|
|
||||||
@ -355,8 +358,8 @@ int frameThread(void * unused)
|
|||||||
|
|
||||||
if (!state.started)
|
if (!state.started)
|
||||||
{
|
{
|
||||||
DEBUG_INFO("feed started");
|
|
||||||
state.started = true;
|
state.started = true;
|
||||||
|
updatePositionInfo();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user