From 4bb666458419e62b1cce34e1eb787629621c316d Mon Sep 17 00:00:00 2001 From: Joshua Granick Date: Wed, 15 Apr 2015 00:00:27 -0700 Subject: [PATCH] Flash compile fix --- lime/graphics/Image.hx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lime/graphics/Image.hx b/lime/graphics/Image.hx index cd05614af..d8e3dc080 100644 --- a/lime/graphics/Image.hx +++ b/lime/graphics/Image.hx @@ -134,8 +134,7 @@ class Image { #if flash 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); + this.buffer.src = new BitmapData (width, height, true, ((color & 0xFF) << 24) | (color >> 8)); #end default: