aboutsummaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 7278c45..552f74c 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -8,7 +8,7 @@ pub(crate) fn flood<T: LabelU16 + PartialEq + Copy, R: LabelU16 + PartialEq + Co
from_color: T, to_color: R) {
let width = source.width;
let destination_color = destination[x + y * width];
- if destination_color != destination_color.zero() {
+ if !destination_color.is_zero() {
return;
}
let source_color = source.buffer[x + y * width];