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.width = $(window).width();
canvas.height = $(window).height(); canvas.height = $(window).height();
@ -101,7 +101,6 @@ function init(b) {
$("#pauseBtn").show(); $("#pauseBtn").show();
if(saveState.hex !== undefined) gameState = 1; if(saveState.hex !== undefined) gameState = 1;
scaleCanvas();
settings.blockHeight = settings.baseBlockHeight * settings.scale; settings.blockHeight = settings.baseBlockHeight * settings.scale;
settings.hexWidth = settings.baseHexWidth * settings.scale; settings.hexWidth = settings.baseHexWidth * settings.scale;
MainHex = saveState.hex || new Hex(settings.hexWidth); MainHex = saveState.hex || new Hex(settings.hexWidth);