mirror of
https://github.com/starovoid/rxing.git
synced 2026-07-26 12:22:34 +00:00
change PointCallback to accept Point instead of ResultPoint
This commit is contained in:
@@ -311,7 +311,7 @@ impl AlignmentPatternFinder {
|
||||
// Hadn't found this before; save it
|
||||
let point = AlignmentPattern::new(centerJ, centerI, estimatedModuleSize);
|
||||
if let Some(rpc) = self.resultPointCallback.clone() {
|
||||
rpc(&point);
|
||||
rpc((&point).into());
|
||||
}
|
||||
|
||||
self.possibleCenters.push(point);
|
||||
|
||||
@@ -603,7 +603,7 @@ impl<'a> FinderPatternFinder<'_> {
|
||||
let point = FinderPattern::new(centerJ, centerI, estimatedModuleSize);
|
||||
self.possibleCenters.push(point);
|
||||
if let Some(rpc) = self.resultPointCallback.clone() {
|
||||
rpc(&point);
|
||||
rpc((&point).into());
|
||||
}
|
||||
}
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user