light mode
parent
4bc0c5d398
commit
5b53dcdd9f
|
@ -49,9 +49,8 @@ void Picture_render(Picture *p, SDL_Renderer *rend) {
|
|||
uint32_8 x = x0 + p->x;
|
||||
for (int i = 0; i < w; i += 8, r += 8, x += 8) {
|
||||
uint32_8 z = (x ^ y) % 9;
|
||||
uint32_8 f = (z==0) & c;
|
||||
//uint32_8 z = (-((~(x & y)) + (~(-y)))) % 7;
|
||||
//uint32_8 f = (z==0) ^ c;
|
||||
uint32_8 f = (z!=0) & c;
|
||||
memcpy(&p->pixels[r], (uint32_t*)&f, sizeof(f));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue