Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void scroll_down(void) {
- uint16_t temp;
- if (GETY >= ROWS) {
- temp = GETY - ROWS + 1;
- memcpy(pScreen, pScreen + temp*COLS, (ROWS - temp) * COLS * 2);
- memsetw(pScreen + (ROWS-temp) *COLS, blank, COLS);
- gpos = 1920;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment