Locate proper Y position in 4x4 matrix bit pattern
This commit is contained in:
parent
3e5d6c2f8d
commit
2cacfb6080
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue