From e3a426f3789250d6f10951a68d20043672fc63d5 Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Thu, 21 Dec 2017 06:38:34 +1100 Subject: [PATCH] [client] update dimension information after the first frame --- client/main.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/client/main.c b/client/main.c index 94faf170..f15f44b0 100644 --- a/client/main.c +++ b/client/main.c @@ -121,6 +121,9 @@ struct AppParams params = static inline void updatePositionInfo() { + if (!state.started) + return; + int w, h; SDL_GetWindowSize(state.window, &w, &h); @@ -355,8 +358,8 @@ int frameThread(void * unused) if (!state.started) { - DEBUG_INFO("feed started"); state.started = true; + updatePositionInfo(); } }