C# port, QRCode finder pattern update based on r814 update
authormfzpeyo <mfzpeyo@59b500cc-1b3d-0410-9834-0bbf25fbcc57>
Fri, 9 Jan 2009 17:24:25 +0000 (17:24 +0000)
committermfzpeyo <mfzpeyo@59b500cc-1b3d-0410-9834-0bbf25fbcc57>
Fri, 9 Jan 2009 17:24:25 +0000 (17:24 +0000)
git-svn-id: http://zxing.googlecode.com/svn/trunk@819 59b500cc-1b3d-0410-9834-0bbf25fbcc57

csharp/qrcode/detector/FinderPatternFinder.cs

index f9e3834..6023ef0 100755 (executable)
@@ -408,10 +408,10 @@ namespace com.google.zxing.qrcode.detector
                   // How far down can we skip before resuming looking for the next\r
                   // pattern? In the worst case, only the difference between the\r
                   // difference in the x / y coordinates of the two centers.\r
-                  // This is the case where you find top left first. Draw it out.\r
+                    // This is the case where you find top left last.\r
                   hasSkipped = true;\r
                   return (int) (Math.Abs(firstConfirmedCenter.getX() - center.getX()) -\r
-                      Math.Abs(firstConfirmedCenter.getY() - center.getY()));\r
+                      Math.Abs(firstConfirmedCenter.getY() - center.getY())) / 2;\r
                 }\r
               }\r
             }\r