Locate proper Y position in 4x4 matrix bit pattern

This commit is contained in:
XANTRONIX Development 2016-05-11 22:56:17 -05:00
parent 3e5d6c2f8d
commit 2cacfb6080

View file

@ -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;