0 Members and 1 Guest are viewing this topic.
void masksprite(char* scrbuf, char* sprite, int x, int y, int w, int h){ int i, j; for (i = 0; i < w; i++) { for (j = 0; j < h; j++) { if (sprite[i + w * j] < 16) { setPixelBuf(scrbuf, i + x, j + y, sprite[i + w * j]); } } }}
memmove(scrbuf, scrbuf + bytesOffset, cpysize);memset(scrbuf + cpysize, 0xFF, bytesOffset);
memmove(scrbuf + bytesOffset, scrbuf, cpysize);memset(scrbuf, 0xFF, bytesOffset);