Browse Source

Fixed operators priority issue

Gwenaël Hagenmuller (MacBook-Theia) 12 năm trước cách đây
mục cha
commit
231440129e
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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