Make Björk not look like the protagonist of Japanese horror/thriller 'Ringu'
This commit is contained in:
parent
94f78b14e1
commit
94577e7cde
1 changed files with 3 additions and 4 deletions
|
@ -83,10 +83,9 @@ void cammy_photo_export(cammy_photo *src, uint8_t *dest, int stride) {
|
|||
int tile_x = x & 7,
|
||||
tile_y = y & 7;
|
||||
|
||||
uint8_t value = 0;
|
||||
|
||||
value |= (tile->data[ tile_y<<1] & (8 >> tile_x))
|
||||
| ((tile->data[(tile_y<<1)+1] & (8 >> tile_x)) << 1);
|
||||
uint8_t value =
|
||||
(tile->data[ tile_y<<1] & (0x80 >> tile_x)) >> (tile_x ^ 7)
|
||||
| ((tile->data[(tile_y<<1)|1] & (0x80 >> tile_x)) >> (tile_x ^ 7) << 1);
|
||||
|
||||
value ^= 3;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue