HaxeFlixel/flixel-addons

FlxSliceSprite doesn't work on native

JoeCreates opened this issue · 5 comments

We see just one mis-scaled corner.

haxeflixel dev, openfl 8.7, lime 7.2

add(new FlxSliceSprite(new openfl.display.BitmapData(24, 24), FlxRect.get(8, 8, 16, 12), 100, 50));

Not a very useful repro case without that panel.png. ;)

How's that? Observed, we see a tiny white square whereas we should see the 100x50 box which correctly shows on flash.

This is what it looks like with OpenFL 3.6.1 / Lime 2.9.1:

I'm having similar problems.

Flash:
image

Windows cpp:
image

Code:

var container:FlxSliceSprite = new FlxSliceSprite("assets/images/panel.png", new FlxRect(32, 32, 96, 96), 416, 416); container.setPosition(64, 39); add(container);

Image panel:
panel

This is now fixed by a recent openfl commit.