Talk:HandlingHighDPI

From WebGL Public Wiki
Revision as of 14:21, 12 March 2015 by QuentinUK (talk | contribs) (Seems to be the wrong way round?)
Jump to navigation Jump to search

The method described on this wiki page does not work for me with Safari. I'm using 6.0.2 with WebGL enabled through the Developer menu. Anyone know of a work around?

The page shows the following:-

<canvas width="111" height="222" style="width: 333px; height: 444px;"></canvas>

When I view the demo it is the other way around.

Non DPI aware canvas

<canvas width="512" height="512" style="width: 512px; height: 512px;"></canvas>


DPI aware canvas

<canvas width="1024" height="1024" style="width: 512px; height: 512px;"></canvas>

So the buffer canvas is larger than the css canvas.

QuentinUK (talk) 14:21, 12 March 2015 (UTC)