소스 검색

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;
         }
 
+        width = width | 0;
+        height = height | 0;
+
         if (this._renderingCanvas.width === width && this._renderingCanvas.height === height) {
             return;
         }