mirror of
https://github.com/photonstorm/phaser
synced 2024-11-10 07:04:31 +00:00
Merge pull request #5180 from rexrainbow/BugFix-EllipseCurve
Fix bug about setting xRadius/yRadius by width/height
This commit is contained in:
commit
31cdeac1ee
1 changed files with 2 additions and 2 deletions
|
@ -296,7 +296,7 @@ var EllipseCurve = new Class({
|
|||
*/
|
||||
setWidth: function (value)
|
||||
{
|
||||
this.xRadius = value * 2;
|
||||
this.xRadius = value / 2;
|
||||
|
||||
return this;
|
||||
},
|
||||
|
@ -313,7 +313,7 @@ var EllipseCurve = new Class({
|
|||
*/
|
||||
setHeight: function (value)
|
||||
{
|
||||
this.yRadius = value * 2;
|
||||
this.yRadius = value / 2;
|
||||
|
||||
return this;
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue