This is nearly entirely bit math
This commit is contained in:
parent
52afcb0cdd
commit
5b534d2b62
1 changed files with 2 additions and 2 deletions
|
@ -124,8 +124,8 @@ static void image_copy(cammy_sram_frame *frame, uint8_t *buf) {
|
|||
value = from ^ 0x03;
|
||||
}
|
||||
|
||||
tile->data[2*tile_y] |= (value & 0x01) << (7 - tile_x);
|
||||
tile->data[2*tile_y+1] |= ((value & 0x02) >> 1) << (7 - tile_x);
|
||||
tile->data[2*tile_y] |= (value & 0x01) << (tile_x ^ 7);
|
||||
tile->data[2*tile_y+1] |= ((value & 0x02) >> 1) << (tile_x ^ 7);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue