Skip to content

Commit

Permalink
fix(fillRect): use height to draw height of rect (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
bertyhell authored and dmester committed Aug 7, 2022
1 parent 06e7f66 commit 024e36b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/canvasContext.js
Original file line number Diff line number Diff line change
Expand Up @@ -349,8 +349,8 @@ CanvasContext.prototype._fillRect = function CanvasContext__fillRect(fillColor,
var points = [
this._transform.multiplyPoint(x, y),
this._transform.multiplyPoint(x + width, y),
this._transform.multiplyPoint(x + width, y + width),
this._transform.multiplyPoint(x, y + width),
this._transform.multiplyPoint(x + width, y + height),
this._transform.multiplyPoint(x, y + height),
this._transform.multiplyPoint(x, y)
];

Expand Down

0 comments on commit 024e36b

Please sign in to comment.