|
|
@ -1,5 +1,11 @@ |
|
|
|
#include <QApplication> |
|
|
|
#include <QApplication> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef QCOM2 |
|
|
|
|
|
|
|
#include <qpa/qplatformnativeinterface.h> |
|
|
|
|
|
|
|
#include <QPlatformSurfaceEvent> |
|
|
|
|
|
|
|
#include <wayland-client-protocol.h> |
|
|
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
#include "window.hpp" |
|
|
|
#include "window.hpp" |
|
|
|
|
|
|
|
|
|
|
|
int main(int argc, char *argv[]) { |
|
|
|
int main(int argc, char *argv[]) { |
|
|
@ -16,11 +22,15 @@ int main(int argc, char *argv[]) { |
|
|
|
QApplication a(argc, argv); |
|
|
|
QApplication a(argc, argv); |
|
|
|
|
|
|
|
|
|
|
|
MainWindow w; |
|
|
|
MainWindow w; |
|
|
|
#ifdef QCOM2 |
|
|
|
|
|
|
|
w.showFullScreen(); |
|
|
|
|
|
|
|
#else |
|
|
|
|
|
|
|
w.setFixedSize(vwp_w, vwp_h); |
|
|
|
w.setFixedSize(vwp_w, vwp_h); |
|
|
|
w.show(); |
|
|
|
w.show(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef QCOM2 |
|
|
|
|
|
|
|
QPlatformNativeInterface *native = QGuiApplication::platformNativeInterface(); |
|
|
|
|
|
|
|
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(); |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
return a.exec(); |
|
|
|
return a.exec(); |
|
|
|