Skip to content

Commit

Permalink
fix clearRect param; wrong copy/paste I guess!
Browse files Browse the repository at this point in the history
thanks @fendgi! closes #44
  • Loading branch information
manuhabitela committed Aug 10, 2015
1 parent 5d10854 commit e02f453
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/board.js
Expand Up @@ -465,7 +465,7 @@ DrawingBoard.Board.prototype = {
*/
fill: function(e) {
if (this.getImg() === this.blankCanvas) {
this.ctx.clearRect(0, 0, this.ctx.canvas.width, this.ctx.canvas.width);
this.ctx.clearRect(0, 0, this.ctx.canvas.width, this.ctx.canvas.height);
this.ctx.fillStyle = this.color;
this.ctx.fillRect(0, 0, this.ctx.canvas.width, this.ctx.canvas.height);
return;
Expand Down

0 comments on commit e02f453

Please sign in to comment.