Adjust formatting on last change. Simplify GridSampler
[zxing.git] / core / src / com / google / zxing / pdf417 / detector / Detector.java
index a8ceef0..9d6a18f 100644 (file)
@@ -377,7 +377,10 @@ public final class Detector {
     // very corners. So there is no 0.5f here; 0.0f is right.
     GridSampler sampler = GridSampler.getInstance();
 
-    return sampler.sampleGrid(matrix, dimension, 0.0f, // p1ToX
+    return sampler.sampleGrid(
+        matrix, 
+        dimension, dimension,
+        0.0f, // p1ToX
         0.0f, // p1ToY
         dimension, // p2ToX
         0.0f, // p2ToY