- From: Vitaliy Kuzmin <hwguy.siplus@gmail.com>
- Date: Sat, 6 Apr 2013 13:54:53 +0000
- To: public-respimg@w3.org
This is a proposal for addition of a zoom-independent version of window.devicePixelRatio to HTML5. The issue Before Firefox 18 and Chrome 25, to make a 3D (WebGL) game drawn in HD, we could set the scale in <meta name="viewport"> to 1 and multiply the size of 2D things (HUD elements, menus) by window.devicePixelRatio. However, since these versions of the browsers, devicePixelRatio started to take browser zoom level into account. While the change works perfectly for loading of high-resolution versions of <img> images and background-images, it has been impossible to draw HUD elements in HD 3D games with correct sizes since that. ---------- This post sent on Responsive Images Community Group 'deviceNormalPixelRatio: proposal for zoom-independent devicePixelRatio for HD Retina games' http://www.w3.org/community/respimg/2013/04/06/devicenormalpixelratio-proposal-for-zoom-independent-devicepixelratio-for-hd-retina-games/ Learn more about the Responsive Images Community Group: http://www.w3.org/community/respimg
Received on Saturday, 6 April 2013 15:25:15 UTC