From 2cacfb60805a0639b9b6bb07c1c21b278e11b655 Mon Sep 17 00:00:00 2001 From: XANTRONIX Development Date: Wed, 11 May 2016 22:56:17 -0500 Subject: [PATCH] Locate proper Y position in 4x4 matrix bit pattern --- src/test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test.c b/src/test.c index ff6be18..5319c9e 100644 --- a/src/test.c +++ b/src/test.c @@ -118,7 +118,7 @@ static void image_copy(cammy_sram_frame *frame, uint8_t *buf) { uint32_t to = (slot & 0x00030000) >> 16; uint8_t value; - if (slot & (0x8000 >> (x & 0x03) >> (y & 0x03))) { + if (slot & (0x8000 >> (x & 0x03) >> ((y & 0x03) << 2))) { value = to ^ 0x03; } else { value = from ^ 0x03;