Compile fix

This commit is contained in:
Joshua Granick
2016-08-03 13:17:35 -07:00
parent 060f7002ff
commit bd7ddafa31

View File

@@ -513,7 +513,7 @@ class Image {
public static function fromFile (path:String, onload:Image -> Void = null, onerror:Void -> Void = null):Image {
if (image == null) return null;
if (path == null) return null;
var image = new Image ();
image.__fromFile (path, onload, onerror);
return image;
@@ -536,6 +536,7 @@ class Image {
}
public function getColorBoundsRect (mask:Int, color:Int, findColor:Bool = true, format:PixelFormat = null):Rectangle {
if (buffer == null) return null;