This commit is contained in:
Gwenhael Le Moine 2011-07-13 20:51:27 +02:00
parent 355f66b8a1
commit 540e7d1c02

View file

@ -103,8 +103,11 @@ function display_on_canvas( state, canvas_elt ) {
case "x": sprite = sprites.gift; break; case "x": sprite = sprites.gift; break;
case " ": sprite = sprites.void; 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 );
} }
} }
} }