From 57afc8d1542e43f4a8514fd5864bd0cbc158eeb3 Mon Sep 17 00:00:00 2001 From: mfzpeyo Date: Fri, 9 Jan 2009 17:24:25 +0000 Subject: [PATCH] C# port, QRCode finder pattern update based on r814 update git-svn-id: https://zxing.googlecode.com/svn/trunk@819 59b500cc-1b3d-0410-9834-0bbf25fbcc57 --- csharp/qrcode/detector/FinderPatternFinder.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/csharp/qrcode/detector/FinderPatternFinder.cs b/csharp/qrcode/detector/FinderPatternFinder.cs index f9e3834bd..6023ef0f5 100755 --- a/csharp/qrcode/detector/FinderPatternFinder.cs +++ b/csharp/qrcode/detector/FinderPatternFinder.cs @@ -408,10 +408,10 @@ namespace com.google.zxing.qrcode.detector // How far down can we skip before resuming looking for the next // pattern? In the worst case, only the difference between the // difference in the x / y coordinates of the two centers. - // This is the case where you find top left first. Draw it out. + // This is the case where you find top left last. hasSkipped = true; return (int) (Math.Abs(firstConfirmedCenter.getX() - center.getX()) - - Math.Abs(firstConfirmedCenter.getY() - center.getY())); + Math.Abs(firstConfirmedCenter.getY() - center.getY())) / 2; } } }