diff --git a/haxe/ui/backend/ComponentGraphicsImpl.hx b/haxe/ui/backend/ComponentGraphicsImpl.hx index fb931fd..681a06e 100644 --- a/haxe/ui/backend/ComponentGraphicsImpl.hx +++ b/haxe/ui/backend/ComponentGraphicsImpl.hx @@ -262,8 +262,10 @@ class ComponentGraphicsImpl extends ComponentGraphicsBase { } if (currentPath.commands[0] != GraphicsPathCommand.MOVE_TO) { currentPath.commands.insertAt(0, GraphicsPathCommand.MOVE_TO); + #if !flash @:privateAccess currentPath.data.insertAt(0, flashGfxSprite.graphics.__positionX); @:privateAccess currentPath.data.insertAt(0, flashGfxSprite.graphics.__positionY); + #end } flashGfxSprite.graphics.drawPath(currentPath.commands, currentPath.data); if (_currentFillColor != null) {