aboutsummaryrefslogtreecommitdiff
path: root/src/bitmap.rs
diff options
context:
space:
mode:
authorAkshay <[email protected]>2021-04-11 11:01:18 +0100
committerAkshay <[email protected]>2021-04-11 11:01:18 +0100
commitb0685c1638044b85dc7e8b07555a7b639b54d69a (patch)
tree3ba4f28a1a8f4c1b409df2d4f5082056ece2f8e6 /src/bitmap.rs
parent8d5fecc23f4e986c74295c58473c6ea8d840d955 (diff)
add rect select brush and keybinds
Diffstat (limited to 'src/bitmap.rs')
-rw-r--r--src/bitmap.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bitmap.rs b/src/bitmap.rs
index ba5c8f1..0b1754a 100644
--- a/src/bitmap.rs
+++ b/src/bitmap.rs
@@ -306,7 +306,7 @@ impl Pixmap<bool> {
306 } 306 }
307} 307}
308 308
309fn abs_difference<T: Sub<Output = T> + Ord>(x: T, y: T) -> T { 309pub fn abs_difference<T: Sub<Output = T> + Ord>(x: T, y: T) -> T {
310 if x < y { 310 if x < y {
311 y - x 311 y - x
312 } else { 312 } else {