From 7d9b1af2061df47a9659e8c7445e468e61e81cf1 Mon Sep 17 00:00:00 2001 From: Ian Harrigan Date: Mon, 28 Oct 2024 09:28:32 +0100 Subject: [PATCH] #if !flash --- haxe/ui/backend/ComponentGraphicsImpl.hx | 2 ++ 1 file changed, 2 insertions(+) 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) {