6 void shape(
char *img,
int bw,
int xtl,
int ytl,
int xpics,
int ypics)
8 int byte, bit, pix = 0, xp, yp, bytep, bitp, pixp = 0, n;
9 uint32_t screenbuf = screen_getBuffer();
10 char *scrbuf = (
char *) screenbuf;
11 for(
int x = 0;
x < xpics;
x++)
13 for(
int y = 0; y < ypics; y++)
18 pix = (bw & 1) & (img[
byte] >> bit);
22 scrbuf[byte] &= ~(1 << bit);
23 scrbuf[byte] |= (pixp << bit);
28 bytep = ((yp >> 3) << 7) + xp;
30 scrbuf[bytep] &= ~(1 << bitp);
31 scrbuf[bytep] |= (pix << bitp);