Talk:HandlingHighDPI: Difference between revisions

From WebGL Public Wiki
Jump to navigation Jump to search
Safari
 
Seems to be the wrong way round?
Line 1: Line 1:
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 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.
[[User:QuentinUK|QuentinUK]] ([[User talk:QuentinUK|talk]]) 14:21, 12 March 2015 (UTC)

Revision as of 14:21, 12 March 2015

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)