Skip to content

Commit c23d3ce

Browse files
committed
Merge pull request #4 from jherrm/master
Enable High DPI display support.
2 parents 0d50332 + fba33e7 commit c23d3ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Babylon/babylon.engine.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
this._workingContext = this._workingCanvas.getContext("2d");
2828

2929
// Viewport
30-
this._hardwareScalingLevel = 1.0;
30+
this._hardwareScalingLevel = 1.0 / window.devicePixelRatio || 1.0;
3131
this.resize();
3232

3333
// Caps

0 commit comments

Comments
 (0)