X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=app%2Fmain.cpp;fp=app%2Fmain.cpp;h=55a7688df91e525758bfa926bf390cfc8f63848b;hb=953a4cc67c14d37916af8f6d8caa7136bd289e5d;hp=211f52b250eaa0f436f1ef1fbe7ab14b0053c9d2;hpb=1aa5a65601669dc33c1ce8729ca607d847985a44;p=apps%2Fhvac.git diff --git a/app/main.cpp b/app/main.cpp index 211f52b..55a7688 100644 --- a/app/main.cpp +++ b/app/main.cpp @@ -75,6 +75,8 @@ int main(int argc, char *argv[]) if(qwm->init(port,secret) != 0){ exit(EXIT_FAILURE); } + AGLScreenInfo screenInfo(qwm->get_scale_factor()); + engine.rootContext()->setContextProperty(QStringLiteral("screenInfo"), &screenInfo); // Request a surface as described in layers.json windowmanager’s file if (qwm->requestSurface(myname) != 0) { exit(EXIT_FAILURE);