Skip to content

Commit 024e36b

Browse files
bertyhelldmester
authored andcommitted
fix(fillRect): use height to draw height of rect (#4)
1 parent 06e7f66 commit 024e36b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/canvasContext.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -349,8 +349,8 @@ CanvasContext.prototype._fillRect = function CanvasContext__fillRect(fillColor,
349349
var points = [
350350
this._transform.multiplyPoint(x, y),
351351
this._transform.multiplyPoint(x + width, y),
352-
this._transform.multiplyPoint(x + width, y + width),
353-
this._transform.multiplyPoint(x, y + width),
352+
this._transform.multiplyPoint(x + width, y + height),
353+
this._transform.multiplyPoint(x, y + height),
354354
this._transform.multiplyPoint(x, y)
355355
];
356356

0 commit comments

Comments
 (0)