From 06ce886be13dd983bee75851cac4fa274e770056 Mon Sep 17 00:00:00 2001 From: lengstrom Date: Tue, 22 Jul 2014 22:07:38 -0400 Subject: [PATCH] fixed flashing on ios --- js/main.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/js/main.js b/js/main.js index f3ee909..f9d7412 100644 --- a/js/main.js +++ b/js/main.js @@ -1,4 +1,4 @@ - function scaleCanvas() { +function scaleCanvas() { canvas.width = $(window).width(); canvas.height = $(window).height(); @@ -101,7 +101,6 @@ function init(b) { $("#pauseBtn").show(); if(saveState.hex !== undefined) gameState = 1; - scaleCanvas(); settings.blockHeight = settings.baseBlockHeight * settings.scale; settings.hexWidth = settings.baseHexWidth * settings.scale; MainHex = saveState.hex || new Hex(settings.hexWidth);