diff options
author | Tadao Tanikawa <tanikawa.tadao@jp.panasonic.com> | 2018-08-02 12:50:02 +0000 |
---|---|---|
committer | Tadao Tanikawa <tanikawa.tadao@jp.panasonic.com> | 2018-08-02 12:50:02 +0000 |
commit | 80ea6c4c0fe95efda049410fe290602982ba388c (patch) | |
tree | 01cc981d104f61c66e0c108d657d0524c54b6ad7 /app/main.cpp | |
parent | 491b4c3aab9a42af17dc1bcf0889751694069dd9 (diff) |
Improve output of multiple screen resolution
To improve output on various monitor with various resolution,
use scale_factor from WM to fit various screen resolution.
Bug-AGL: SPEC-1568, SPEC-1569, SPEC-1611
Change-Id: I7532f5df390d380e8dac00519af0943b342ad31c
Signed-off-by: Tadao Tanikawa <tanikawa.tadao@jp.panasonic.com>
Diffstat (limited to 'app/main.cpp')
-rw-r--r-- | app/main.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/main.cpp b/app/main.cpp index 1d24a8a..0fb066c 100644 --- a/app/main.cpp +++ b/app/main.cpp @@ -98,6 +98,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); |