Explorar o código

Fix resize bug!

David Catuhe %!s(int64=6) %!d(string=hai) anos
pai
achega
0ec4d2e256
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  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;
         }