Skip to content

Commit d7db6e5

Browse files
committed
Fixed issue with max values in Graphics.drawRoundRect
1 parent 63077ee commit d7db6e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/easeljs/display/Graphics.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2205,7 +2205,7 @@ this.createjs = this.createjs||{};
22052205
this.radiusTL = radiusTL; this.radiusTR = radiusTR;
22062206
this.radiusBR = radiusBR; this.radiusBL = radiusBL;
22072207
}).prototype.exec = function(ctx) {
2208-
var max = (w<h?w:h)/2;
2208+
var max = (this.w<this.h?this.w:this.h)/2;
22092209
var mTL=0, mTR=0, mBR=0, mBL=0;
22102210
var x = this.x, y = this.y, w = this.w, h = this.h;
22112211
var rTL = this.radiusTL, rTR = this.radiusTR, rBR = this.radiusBR, rBL = this.radiusBL;

0 commit comments

Comments
 (0)