0 Members and 2 Guests are viewing this topic.
Are you supposed to be able to use floats as arguments to the sprite routine?
void scrollScreenDown(char* scrbuf, char* tmpbuf, int lines){ int bytesOffset = 160 * lines; int cpysize = SCREEN_BYTES_SIZE - bytesOffset; memcpy(tmpbuf, scrbuf - bytesOffset, cpysize); memcpy(scrbuf, tmpbuf, cpysize); memset(scrbuf + cpysize, 0xFF, bytesOffset);}void scrollScreenUp(char* scrbuf, char* tmpbuf, int lines){ int bytesOffset = 160 * lines; int cpysize = SCREEN_BYTES_SIZE - bytesOffset; memcpy(tmpbuf, scrbuf + bytesOffset, cpysize); memcpy(scrbuf, tmpbuf, cpysize); memset(scrbuf + cpysize, 0xFF, bytesOffset);}[\code]
scrollScreen(char* scrbuf, char* tmpbuf, int lines)