8 uint32_t screenbuf = screen_getBuffer();
9 char *scrbuf = (
char *) screenbuf;
10 int byte, bit, pix, xp, yp, bytep, bitp, pixp;
11 for(
int x = 0;
x < 64;
x++)
13 for(
int y = 0; y < 64; y++)
15 byte = ((y >> 3) << 7) +
x;
17 pix = 1 & (scrbuf[byte] >> bit);
22 bytep = ((yp >> 3) << 7) + xp;
24 pixp = 1 & (scrbuf[bytep] >> bitp);
26 scrbuf[bytep] &= ~(1 << bitp);
27 scrbuf[bytep] |= (pix << bitp);
29 scrbuf[byte] &= ~(1 << bit);
30 scrbuf[byte] |= (pixp << bit);