From cf20b6eab458f1a203d9363d56ed783bb26d904a Mon Sep 17 00:00:00 2001 From: Gwenhael Le Moine Date: Wed, 13 Jul 2011 20:51:27 +0200 Subject: [PATCH] beau --- star.js/js/star.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/star.js/js/star.js b/star.js/js/star.js index 43d86e4..17ba88f 100644 --- a/star.js/js/star.js +++ b/star.js/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 ); } } }