Compile fix
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user