From 7a6ec83a367e1dd2bfc8dba7c17261b3cfbbe2b1 Mon Sep 17 00:00:00 2001 From: Dean Lee Date: Fri, 15 Jan 2021 18:57:26 +0800 Subject: [PATCH] qt/home.cc: set fb_w&fb_h in function framebuffer_init,same as android (#19765) --- selfdrive/ui/qt/home.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 }