diff --git a/www/js/ui.js b/www/js/ui.js index c9a433d..d54c902 100644 --- a/www/js/ui.js +++ b/www/js/ui.js @@ -248,9 +248,9 @@ const UI = { let piece_name = GAME.Const.Piece[piece].name; if(promoted) { - GAME_ASSET.Image.Promote.draw(ctx, 1.5 * size, [size * (1 + (2 * i)), size], INTERFACE.Color.Promote); + GAME_ASSET.Image.Promote.draw(ctx, canvas.height, [size * (1 + (2 * i)), size], INTERFACE.Color.Promote); } - GAME_ASSET.Image[piece_name].draw(ctx, 1.5 * size, [size * (1 + (2 * i)), size], color); + GAME_ASSET.Image[piece_name].draw(ctx, canvas.height, [size * (1 + (2 * i)), size], color); } }, 10, moves, record.moves); @@ -404,9 +404,9 @@ const UI = { let piece_name = GAME.Const.Piece[piece].name; if(promoted) { - GAME_ASSET.Image.Promote.draw(ctx, 1.5 * size, [size * (1 + (2 * i)), size], INTERFACE.Color.Promote); + GAME_ASSET.Image.Promote.draw(ctx, canvas.height, [size * (1 + (2 * i)), size], INTERFACE.Color.Promote); } - GAME_ASSET.Image[piece_name].draw(ctx, 1.5 * size, [size * (1 + (2 * i)), size], color); + GAME_ASSET.Image[piece_name].draw(ctx, canvas.height, [size * (1 + (2 * i)), size], color); } }, 10, moves, record.moves);