X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=HomeScreen%2Fsrc%2Fmain.cpp;h=264468b12b708c4c2289c77c5d21c6792f6df845;hb=cf8cd699e91df40c3f9070019f7c561432b4b4dd;hp=9108c354c8ede6dc6773c55d068e4764dcfd9241;hpb=ca3605ea664834acdf712e691be8f0358b1c6b6f;p=staging%2FHomeScreen.git diff --git a/HomeScreen/src/main.cpp b/HomeScreen/src/main.cpp index 9108c35..264468b 100644 --- a/HomeScreen/src/main.cpp +++ b/HomeScreen/src/main.cpp @@ -17,7 +17,8 @@ #include "mainwindow.h" #include #include -#include +//#include +#include int main(int argc, char *argv[]) { @@ -36,11 +37,20 @@ int main(int argc, char *argv[]) QCoreApplication::setOrganizationDomain("LinuxFoundation"); QCoreApplication::setOrganizationName("AutomotiveGradeLinux"); QCoreApplication::setApplicationName("HomeScreen"); - QCoreApplication::setApplicationVersion("0.1.0"); + QCoreApplication::setApplicationVersion("0.3.0"); + + QSurfaceFormat format; + format.setDepthBufferSize(16); + format.setStencilBufferSize(8); MainWindow w; - w.move(0, 0); w.show(); +#ifdef __arm__ + // trigger wayland compositor to position the surface correctly +#endif +#ifdef __i386__ + w.move(0, 0); +#endif #ifdef __arm__