Lines Matching refs:scr
26 void PR_ClearScreen(PRScreen * scr) in PR_ClearScreen() argument
28 MI_CpuClear16((void *)scr->screen, PR_SCREEN_SIZE * sizeof(u16)); in PR_ClearScreen()
29 scr->curx = 0; in PR_ClearScreen()
30 scr->cury = 0; in PR_ClearScreen()
33 void PR_Locate(PRScreen * scr, int x, int y) in PR_Locate() argument
35 scr->curx = x; in PR_Locate()
36 scr->cury = y; in PR_Locate()
39 static void PR_ScrollUp(PRScreen * scr) in PR_ScrollUp() argument
43 if (!scr->scroll) in PR_ScrollUp()
45 PR_ClearScreen(scr); in PR_ScrollUp()
51 MI_CpuCopy16((void *)(scr->screen + (y + 1) * PR_SCREEN_WIDTH), in PR_ScrollUp()
52 (void *)(scr->screen + y * PR_SCREEN_WIDTH), PR_SCREEN_WIDTH * sizeof(u16)); in PR_ScrollUp()
55 (void)MI_CpuClear16((void *)(scr->screen in PR_ScrollUp()
60 void PR_PutString(PRScreen * scr, const char *text) in PR_PutString() argument
72 scr->curx = 0; in PR_PutString()
73 ++scr->cury; in PR_PutString()
74 if (scr->cury > PR_SCREEN_HEIGHT - 1) in PR_PutString()
76 scr->cury = PR_SCREEN_HEIGHT - 1; in PR_PutString()
77 PR_ScrollUp(scr); in PR_PutString()
102 scr->screen[scr->cury * PR_SCREEN_WIDTH + scr->curx] = (u16)((pal << 12) | (0x0fff & *p)); in PR_PutString()
105 ++scr->curx; in PR_PutString()
106 if (scr->curx > PR_SCREEN_WIDTH - 1) in PR_PutString()
108 scr->curx = 0; in PR_PutString()
109 ++scr->cury; in PR_PutString()
110 if (scr->cury > PR_SCREEN_HEIGHT - 1) in PR_PutString()
112 scr->cury = PR_SCREEN_HEIGHT - 1; in PR_PutString()
113 PR_ScrollUp(scr); in PR_PutString()
119 void PR_VPrintString(PRScreen * scr, const char *fmt, va_list vlist) in PR_VPrintString() argument
129 PR_PutString(scr, buf); in PR_VPrintString()
133 void PR_PrintString(PRScreen * scr, const char *fmt, ...) in PR_PrintString() argument
137 PR_VPrintString(scr, fmt, vlist); in PR_PrintString()