From 88d1c0db877c9aa354dd051319d6b677b5104471 Mon Sep 17 00:00:00 2001 From: Mal Date: Mon, 24 Feb 2020 00:34:20 +0100 Subject: [PATCH] Font measuring fix. --- js/module.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/module.js b/js/module.js index 18f0113..2c98144 100644 --- a/js/module.js +++ b/js/module.js @@ -122,6 +122,7 @@ function MainLoop(timestamp) KeyJump.pressed = false; lastTimestamp = undefined; lastRendered = undefined; + textBoxGameFinished.updateLines(window.innerWidth - 40, context); textBoxGameFinished.animate(); } @@ -209,7 +210,6 @@ window.addEventListener( textBoxGameFinished.hasBorder = true; textBoxGameFinished.colorText = 'yellow'; textBoxGameFinished.colorBorder = 'black'; - textBoxGameFinished.updateLines(window.innerWidth - 40, context); architecture = RetroArchitecture.createFromData(level); camera.borderRight = architecture.columns * architecture.tileWidth;