Bitmapdata only working correctly on Flash target

Hi,
I’ve been making something using Bitmapdata, I was testing on Flash for speed, and only noticed at the end that all the other targets weren’t displaying properly…
To try to get to the bottom of it, I made a simple test using this:

	var p1:Point = new Point(0,0);
	var p2:Point = new Point(50,50);

	var bmd1:BitmapData = new BitmapData(100,100,true,0xffff00ff);
	var bmd2:BitmapData = new BitmapData(100,100,true,0xaaffffff);

	var comp:BitmapData = new BitmapData(150,150,true,0x5500ff00);

	comp.copyPixels(bmd1, bmd1.rect, p1, null, null, true);
	comp.copyPixels(bmd2, bmd2.rect, p2, null, null, true);


	var b:Bitmap = new Bitmap(comp);
	addChild(b);

which displays the issue.

Any ideas how to work around or fix this? (I’m on the latest versions of OpenFL & Lime)

Hi @charlie_says,
what output where you having with your code?
It works ok for me using the git development branch, can you try that?

Thanks for the reply!


First result is what I get for Flash, second for Mac. (The test is placed on top of another bitmap).

(not quite sure how to work on the dev branch, and probably won’t have a chance to look into it until next week, but, I will take a look.)

Ah yes… by looking at your screenshots it seems to be exactly what was recently fixed on the dev branch (this issue).

Info about using/building dev:

aha - thanks @azrafe7