HaxeFlixel / flixel-addons

Additional classes for HaxeFlixel
170 stars 136 forks source link

FlxSliceSprite doesn't work on native #328

Closed JoeCreates closed 5 years ago

JoeCreates commented 5 years ago

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));

Gama11 commented 5 years ago

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

JoeCreates commented 5 years ago

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

Gama11 commented 5 years ago

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

Tembac commented 5 years ago

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

JoeCreates commented 5 years ago

This is now fixed by a recent openfl commit.