didn't build on device

This commit is contained in:
grekiki
2020-11-25 14:27:28 +01:00
parent 665f27e777
commit 3abc3aadcb

View File

@@ -1,4 +1,5 @@
#include <string>
#include <QApplication>
#ifdef QCOM2
#include <qpa/qplatformnativeinterface.h>
@@ -15,10 +16,10 @@ void setMainWindow(QWidget *w) {
#ifdef QCOM2
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_commit(s);
w.showFullScreen();
w->showFullScreen();
#endif
}