didn't build on device

old-commit-hash: 3abc3aadcb
commatwo_master
grekiki 4 years ago
parent eed710aa0d
commit 023643f222
  1. 5
      selfdrive/ui/qt/qt_window.cc

@ -1,4 +1,5 @@
#include <string> #include <string>
#include <QApplication>
#ifdef QCOM2 #ifdef QCOM2
#include <qpa/qplatformnativeinterface.h> #include <qpa/qplatformnativeinterface.h>
@ -15,10 +16,10 @@ void setMainWindow(QWidget *w) {
#ifdef QCOM2 #ifdef QCOM2
QPlatformNativeInterface *native = QGuiApplication::platformNativeInterface(); QPlatformNativeInterface *native = QGuiApplication::platformNativeInterface();
wl_surface *s = reinterpret_cast<wl_surface*>(native->nativeResourceForWindow("surface", w.windowHandle())); wl_surface *s = reinterpret_cast<wl_surface*>(native->nativeResourceForWindow("surface", w->windowHandle()));
wl_surface_set_buffer_transform(s, WL_OUTPUT_TRANSFORM_270); wl_surface_set_buffer_transform(s, WL_OUTPUT_TRANSFORM_270);
wl_surface_commit(s); wl_surface_commit(s);
w.showFullScreen(); w->showFullScreen();
#endif #endif
} }

Loading…
Cancel
Save