WOO BITMATH

This commit is contained in:
XANTRONIX Development 2016-05-15 01:02:11 -05:00
parent 4e6cd9d1f9
commit 2bc5aaf634

View file

@ -104,8 +104,8 @@ void cammy_photo_import(cammy_photo *dest, uint8_t *src, int stride) {
value = from ^ 0x03;
}
tile->data[2*tile_y] |= (value & 0x01) << (tile_x ^ 7);
tile->data[2*tile_y+1] |= ((value & 0x02) >> 1) << (tile_x ^ 7);
tile->data[ tile_y<<1] |= (value & 0x01) << (tile_x ^ 7);
tile->data[(tile_y<<1)|1] |= ((value & 0x02) >> 1) << (tile_x ^ 7);
}
}
}