From baf822d3de32678d5d895c8c7bb1942731e64173 Mon Sep 17 00:00:00 2001 From: Josiah White Date: Thu, 30 Nov 2017 03:17:02 -0500 Subject: [PATCH] Initalize cached 16x16 tile. --- core/display.js | 1 + 1 file changed, 1 insertion(+) diff --git a/core/display.js b/core/display.js index e61802a6..91952d1f 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"); };