From 9a9eecdb9cb913a3892c540ce788745da8ac65dc Mon Sep 17 00:00:00 2001 From: yukirij Date: Sun, 13 Oct 2024 21:15:03 -0700 Subject: [PATCH] Increase icon size in last played. --- www/js/ui.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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);