[common] fix Color zero
This commit is contained in:
@@ -28,7 +28,7 @@ abstract Color(Int) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private inline function get_zero():Bool {
|
private inline function get_zero():Bool {
|
||||||
return this == 0;
|
return green == 0 && red == 0 && blue == 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@:from
|
@:from
|
||||||
|
|||||||
Reference in New Issue
Block a user