diff options
Diffstat (limited to 'src/lib.rs')
-rw-r--r-- | src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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]; |