summaryrefslogtreecommitdiffstats
path: root/configure.json
diff options
context:
space:
mode:
authorMorten Johan Sørvig <morten.sorvig@qt.io>2018-01-05 13:01:59 +0100
committerMorten Johan Sørvig <morten.sorvig@qt.io>2018-03-02 11:12:53 +0000
commitc9908423d33828b15e5ea97bb1ee8deb08f15673 (patch)
treefd0eb749ab4d1678971a43e4aea76cc1eb8377d5 /configure.json
parent20c7a140574d4d669b3eb60062362d1629f64dfe (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