This is nearly entirely bit math

This commit is contained in:
XANTRONIX Development 2016-05-12 00:43:07 -05:00
parent 52afcb0cdd
commit 5b534d2b62

View file

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