summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosiah White <me@jwhite.io>2017-11-30 03:17:02 -0500
committerJosiah White <me@jwhite.io>2017-11-30 03:17:02 -0500
commitbaf822d3de32678d5d895c8c7bb1942731e64173 (patch)
tree15f09592115ca0995100be0f3ef3901f5e1ce934
parent7f3986815879421432ba6f4ea4b16c15925daccd (diff)
downloadnovnc-baf822d3de32678d5d895c8c7bb1942731e64173.tar.gz
Initalize cached 16x16 tile.
-rw-r--r--core/display.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/display.js b/core/display.js
index e61802a..91952d1 100644
--- a/core/display.js
+++ b/core/display.js
@@ -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");
};