null checks on lime/graphics/Image.hx

This commit is contained in:
Lars A. Doucet
2015-04-21 16:20:45 -05:00
parent 3e2291fb54
commit 02c545a8f1

View File

@@ -1244,6 +1244,7 @@ class Image {
private function get_transparent ():Bool { private function get_transparent ():Bool {
if (buffer == null) return false;
return buffer.transparent; return buffer.transparent;
} }
@@ -1252,7 +1253,7 @@ class Image {
private function set_transparent (value:Bool):Bool { private function set_transparent (value:Bool):Bool {
// TODO, modify data to set transparency // TODO, modify data to set transparency
if (buffer == null) return false;
return buffer.transparent = value; return buffer.transparent = value;
} }