Kode / Kha

Ultra-portable, high performance, open source multimedia framework.
http://kha.tech
zlib License
1.49k stars 174 forks source link

fix blurry rendering when the embedding html page contains a viewport meta tag #1309

Closed sh-dave closed 3 years ago

sh-dave commented 3 years ago

Add <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, minimal-ui"> in your html page, and you'll notice that rendering is blurry all of a sudden. This is due to the fact, that the rendering buffer of the canvas isn't the actual hardware pixel size anymore, but shrunk down by window.devicePixelRatio.