X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;ds=sidebyside;f=app%2Fmain.cpp;h=b8ef25a85721f7a9ea348dd8da6b4430e68c5eb7;hb=5a708f35570b81db4f8de66763c7989874792af0;hp=52a0ff9d406d9d0b1869966058bb109a99e078d1;hpb=d009b2e3665ab49ce8885a7d1f59d67bdaf4cd7e;p=apps%2Fmixer.git diff --git a/app/main.cpp b/app/main.cpp index 52a0ff9..b8ef25a 100644 --- a/app/main.cpp +++ b/app/main.cpp @@ -81,6 +81,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);