From d2f650bfba445d460cbc04c65141569c24c286e7 Mon Sep 17 00:00:00 2001 From: Yury Delendik Date: Mon, 18 Mar 2013 18:25:06 -0500 Subject: [PATCH] Fixes drawRoundRect --- src/flash/display/Graphics.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/flash/display/Graphics.js b/src/flash/display/Graphics.js index ef1e3d442..f8de28593 100644 --- a/src/flash/display/Graphics.js +++ b/src/flash/display/Graphics.js @@ -302,7 +302,7 @@ var GraphicsDefinition = (function () { // at 'D', so we will too. this._currentPath.moveTo(x+w, y+h-radiusH); - this._currentPath.arcTo(x+w, y+h, x+w-radiusW, y+h-radiusH, radiusW, radiusH); + this._currentPath.arcTo(x+w, y+h, x+w-radiusW, y+h, radiusW, radiusH); this._currentPath.arcTo(x, y+h, x, y+h-radiusH, radiusW, radiusH); this._currentPath.arcTo(x, y, x+radiusW, y, radiusW, radiusH); this._currentPath.arcTo(x+w, y, x+w, y+radiusH, radiusW, radiusH); @@ -312,7 +312,7 @@ var GraphicsDefinition = (function () { throw ArgumentError(); this._currentPath.moveTo(x+w, y+h-radiusH); - this._currentPath.arcTo(x+w, y+h, x+w-bottomRightRadius, y+h-bottomRightRadius, bottomRightRadius); + this._currentPath.arcTo(x+w, y+h, x+w-bottomRightRadius, y+h, bottomRightRadius); this._currentPath.arcTo(x, y+h, x, y+h-bottomLeftRadius, bottomLeftRadius); this._currentPath.arcTo(x, y, x+topLeftRadius, y, topLeftRadius); this._currentPath.arcTo(x+w, y, x+w, y+topRightRadius, topRightRadius);