浏览代码

Fix resize bug!

David Catuhe 6 年之前
父节点
当前提交
0ec4d2e256
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      src/Engines/engine.ts

+ 3 - 0
src/Engines/engine.ts

@@ -2257,6 +2257,9 @@ export class Engine {
             return;
             return;
         }
         }
 
 
+        width = width | 0;
+        height = height | 0;
+
         if (this._renderingCanvas.width === width && this._renderingCanvas.height === height) {
         if (this._renderingCanvas.width === width && this._renderingCanvas.height === height) {
             return;
             return;
         }
         }