mirror of
https://github.com/starovoid/rxing.git
synced 2026-07-27 04:42:35 +00:00
we really should be using round, but why is it worse?
This commit is contained in:
@@ -620,7 +620,7 @@ impl FinderPatternFinder {
|
||||
return (((fnp.getX() - center.getX().abs())
|
||||
- (fnp.getY() - center.getY()).abs())
|
||||
/ 2.0)
|
||||
.floor() as u32;
|
||||
.round() as u32;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user