浏览代码

Merge pull request #59 from gwenael-hagenmuller/master

Fixed operators priority issue
deltakosh 12 年之前
父节点
当前提交
66a2cb8078
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Babylon/babylon.engine.js

+ 1 - 1
Babylon/babylon.engine.js

@@ -27,7 +27,7 @@
         this._workingContext = this._workingCanvas.getContext("2d");
 
         // Viewport
-        this._hardwareScalingLevel = 1.0 / window.devicePixelRatio || 1.0;
+        this._hardwareScalingLevel = 1.0 / (window.devicePixelRatio || 1.0);
         this.resize();
 
         // Caps