diff --git a/js/star.js b/js/star.js index 43d86e4..17ba88f 100644 --- a/js/star.js +++ b/js/star.js @@ -103,8 +103,11 @@ function display_on_canvas( state, canvas_elt ) { case "x": sprite = sprites.gift; break; case " ": sprite = sprites.void; break; } - ctx.drawImage( sprite, j * board_infos.cell_dimensions.width, i * board_infos.cell_dimensions.height, board_infos.cell_dimensions.width, board_infos.cell_dimensions.height - ); + ctx.drawImage( sprite, + j * board_infos.cell_dimensions.width, + i * board_infos.cell_dimensions.height, + board_infos.cell_dimensions.width, + board_infos.cell_dimensions.height ); } } }