summaryrefslogtreecommitdiffstats
path: root/app/main.cpp
diff options
context:
space:
mode:
authorTadao Tanikawa <tanikawa.tadao@jp.panasonic.com>2018-08-02 13:11:33 +0000
committerTadao Tanikawa <tanikawa.tadao@jp.panasonic.com>2018-08-02 13:11:33 +0000
commitc647ed440383305e65b5c54eccf1ad356debd2e5 (patch)
tree86946437900c6a087063e7d06fe6c43b30cf81d7 /app/main.cpp
parent3c8498d95c3f89def2eb49b668fa70cd12faace7 (diff)
Improve output of multiple screen resolutionsandbox/ruke47/flounder_RPi3
To improve output on various monitor with various resolution, use scale_factor from WM to fit various screen resolution. Change-Id: I5ef4d54712e405744a9c9d2a369fbb2d0d31716d Signed-off-by: Tadao Tanikawa <tanikawa.tadao@jp.panasonic.com>
Diffstat (limited to 'app/main.cpp')
-rw-r--r--app/main.cpp2
1 files changed, 2 insertions, 0 deletions
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);