Flash compile fix

This commit is contained in:
Joshua Granick
2015-04-15 00:00:27 -07:00
parent 8ac963f3e0
commit 4bb6664584

View File

@@ -134,8 +134,7 @@ class Image {
#if flash #if flash
this.buffer = new ImageBuffer (null, width, height); this.buffer = new ImageBuffer (null, width, height);
if (format == null || format == RGBA) color = ((color & 0xFF) << 24) | (color >> 8); this.buffer.src = new BitmapData (width, height, true, ((color & 0xFF) << 24) | (color >> 8));
this.buffer.src = new BitmapData (width, height, true, color);
#end #end
default: default: