url-opts: add forceHdpi option

This commit is contained in:
jean-emmanuel 2017-07-10 17:18:29 +02:00
parent 8f3efc8e80
commit 0ee19c0bf1
2 changed files with 3 additions and 2 deletions

View file

@ -5,7 +5,8 @@ Client specific options can be set by adding query parameters to the server's ur
| Option | Value | Default | Description |
|----|----|----|----|
| hdpi | 1 / 0 | 0 |enable high resolution canvas |
| hdpi | 1 / 0 | 0 | enable high resolution canvas |
| forceHdpi | number | 0 | force canvas scaling (ignore `hdpi`) |
| doubletab | number | 375 | sets the double tap/click time thershold in milliseconds |
| zoom | number | 1 | sets the initial zoom |

View file

@ -25,7 +25,7 @@ window.PXSCALE_RESET = ()=>{
}
PXSCALE_RESET()
window.CANVAS_SCALING = ARGV.hdpi ? window.devicePixelRatio : 1
window.CANVAS_SCALING = ARGV.forceHdpi || ARGV.hdpi ? window.devicePixelRatio : 1
window.DOUBLE_TAP_TIME = ARGV.doubletap ? ARGV.doubletap : 375