fixed flashing on ios
This commit is contained in:
parent
d5042fd793
commit
06ce886be1
1 changed files with 1 additions and 2 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue