Skip to content

Commit

Permalink
fixed bizarre black canvas on first draw
Browse files Browse the repository at this point in the history
  • Loading branch information
prevostc committed Jan 10, 2015
1 parent 474d642 commit 8f80bc6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions www/js/catan/js/ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
// reset canvas
//noinspection SillyAssignmentJS
canvas.width = canvas.width;
ctx.clearRect (0, 0, canvas.width, canvas.height);

for (var i = 0; i < map.board.length; i++) {
for (var j = 0; j < map.board[i].length; j++) {
Expand Down

0 comments on commit 8f80bc6

Please sign in to comment.