]> git.proxmox.com Git - mirror_novnc.git/commitdiff
Initalize cached 16x16 tile.
authorJosiah White <me@jwhite.io>
Thu, 30 Nov 2017 08:17:02 +0000 (03:17 -0500)
committerJosiah White <me@jwhite.io>
Thu, 30 Nov 2017 08:17:02 +0000 (03:17 -0500)
core/display.js

index e61802a6d22e7ca6e719c8083d2114cd3823a7e4..91952d1fe7b8e3f5fc454e208945598e94b595b3 100644 (file)
@@ -69,6 +69,7 @@ export default function Display(target) {
         throw new Error("Canvas does not support createImageData");
     }
 
+    this._tile16x16 = this._drawCtx.createImageData(16, 16);
     Log.Debug("<< Display.constructor");
 };