From 023643f222af367145d6fc4f63e93b6430ecd6bf Mon Sep 17 00:00:00 2001 From: grekiki Date: Wed, 25 Nov 2020 14:27:28 +0100 Subject: [PATCH] didn't build on device old-commit-hash: 3abc3aadcb7d0bac09891504d65d8d86dc9b13ae --- selfdrive/ui/qt/qt_window.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/selfdrive/ui/qt/qt_window.cc b/selfdrive/ui/qt/qt_window.cc index 6438862300..7f6b383bdd 100644 --- a/selfdrive/ui/qt/qt_window.cc +++ b/selfdrive/ui/qt/qt_window.cc @@ -1,4 +1,5 @@ #include +#include #ifdef QCOM2 #include @@ -15,10 +16,10 @@ void setMainWindow(QWidget *w) { #ifdef QCOM2 QPlatformNativeInterface *native = QGuiApplication::platformNativeInterface(); - wl_surface *s = reinterpret_cast(native->nativeResourceForWindow("surface", w.windowHandle())); + wl_surface *s = reinterpret_cast(native->nativeResourceForWindow("surface", w->windowHandle())); wl_surface_set_buffer_transform(s, WL_OUTPUT_TRANSFORM_270); wl_surface_commit(s); - w.showFullScreen(); + w->showFullScreen(); #endif }