light mode

main
Henri Vasserman 2025-01-07 18:56:01 +02:00
parent 4bc0c5d398
commit 5b53dcdd9f
1 changed files with 1 additions and 2 deletions

View File

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