StarlingGraphics / Starling-Extension-Graphics

flash.display.Graphics style extension for the Starling Flash GPU rendering framework
https://github.com/StarlingGraphics/Starling-Extension-Graphics/wiki
MIT License
282 stars 89 forks source link

Shape width calculated incorrectly #130

Closed BwackNinja closed 9 years ago

BwackNinja commented 9 years ago

When drawing a line using a Shape, from (0, 20) to (10, 20) the width and height will both be 20. Typo on line 182 of extension/src/starling/display/graphics/Stroke.as.

"maxBounds.x = y;" should be "maxBounds.x = x;"

IonSwitz commented 9 years ago

Thank you - that was an embarrassing mistake.