W3C home > Mailing lists > Public > public-respimg@w3.org > April 2013

deviceNormalPixelRatio: proposal for zoom-independent devicePixelRatio for HD Retina games [via Responsive Images Community Group]

From: Vitaliy Kuzmin <hwguy.siplus@gmail.com>
Date: Sat, 6 Apr 2013 13:54:53 +0000
To: public-respimg@w3.org
Message-ID: <9a51aa06f37e8cf4b347b774fa773dd0@www.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 &lt;meta
name="viewport"&gt; 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
&lt;img&gt; 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

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:06:08 UTC