From 48d964885f9294e280eb62e77bcd8621361d2bda Mon Sep 17 00:00:00 2001 From: Ahmet Inan Date: Thu, 25 Apr 2024 23:24:48 +0200 Subject: [PATCH] found first bug just one hour after release. yay! --- app/src/main/java/xdsopl/robot36/Decoder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/xdsopl/robot36/Decoder.java b/app/src/main/java/xdsopl/robot36/Decoder.java index 02ee45d..69e0744 100644 --- a/app/src/main/java/xdsopl/robot36/Decoder.java +++ b/app/src/main/java/xdsopl/robot36/Decoder.java @@ -149,7 +149,7 @@ public class Decoder { Arrays.fill(scopeBuffer.pixels, line + pixelBuffer.width * scale, line + scopeBuffer.width, 0); System.arraycopy(scopeBuffer.pixels, line, scopeBuffer.pixels, scopeBuffer.width * (scopeBuffer.line + scopeBuffer.height / 2), scopeBuffer.width); scopeBuffer.line = (scopeBuffer.line + 1) % (scopeBuffer.height / 2); - for (int i = 0; i < scale; ++i) { + for (int i = 1; i < scale; ++i) { System.arraycopy(scopeBuffer.pixels, line, scopeBuffer.pixels, scopeBuffer.width * scopeBuffer.line, scopeBuffer.width); System.arraycopy(scopeBuffer.pixels, line, scopeBuffer.pixels, scopeBuffer.width * (scopeBuffer.line + scopeBuffer.height / 2), scopeBuffer.width); scopeBuffer.line = (scopeBuffer.line + 1) % (scopeBuffer.height / 2);