diff options
author | Morten Johan Sørvig <morten.sorvig@qt.io> | 2018-01-05 13:01:59 +0100 |
---|---|---|
committer | Morten Johan Sørvig <morten.sorvig@qt.io> | 2018-03-02 11:12:53 +0000 |
commit | c9908423d33828b15e5ea97bb1ee8deb08f15673 (patch) | |
tree | fd0eb749ab4d1678971a43e4aea76cc1eb8377d5 /configure.json | |
parent | 20c7a140574d4d669b3eb60062362d1629f64dfe (diff) |
wasm: Implement high-dpi support
This adds support for high-dpi displays and also
browser page zoom.
The high-dpi scale factor is provided by window.devicePixelRatio.
On Chrome and Firefox this property also includes
the zoom factor. Safari provides the display scale only.
Enable high-dpi drawing by increasing the canvas
(drawing) size by factoring in the device pixel ratio.
Make the glViewPort size set by the compositor match.
The backing store and window decorations image sizes
are increased in a similar way, and also set the
device pixel ratio on the images to enable high-dpi
drawing.
Make the glTexSubImage calls use image (pixel) sizes.
Add platform window and screen devicePixelRatio()
accessors which enables high-dpi drawing in Qt.
Change-Id: I1340fa28ec489f003976402d959a23c80b879004
Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
Diffstat (limited to 'configure.json')
0 files changed, 0 insertions, 0 deletions