diff --git a/selfdrive/ui/qt/home.cc b/selfdrive/ui/qt/home.cc index 7ce4ac0bfd..e55380a416 100644 --- a/selfdrive/ui/qt/home.cc +++ b/selfdrive/ui/qt/home.cc @@ -213,8 +213,6 @@ void GLWindow::initializeGL() { ui_state = new UIState(); ui_state->sound = &sound; - ui_state->fb_w = vwp_w; - ui_state->fb_h = vwp_h; ui_init(ui_state); wake(); @@ -273,5 +271,7 @@ void GLWindow::wake() { FramebufferState* framebuffer_init(const char* name, int32_t layer, int alpha, int *out_w, int *out_h) { + *out_w = vwp_w; + *out_h = vwp_h; return (FramebufferState*)1; // not null }