fixed flashing on ios

This commit is contained in:
lengstrom 2014-07-22 22:07:38 -04:00
parent d5042fd793
commit 06ce886be1

View file

@ -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);