Lines Matching refs:scr

29 void PR_ClearScreen(PRScreen * scr)  in PR_ClearScreen()  argument
31 MI_CpuClear16((void *)scr->screen, PR_SCREEN_SIZE * sizeof(u16)); in PR_ClearScreen()
32 scr->curx = 0; in PR_ClearScreen()
33 scr->cury = 0; in PR_ClearScreen()
36 void PR_Locate(PRScreen * scr, int x, int y) in PR_Locate() argument
38 scr->curx = x; in PR_Locate()
39 scr->cury = y; in PR_Locate()
42 static void PR_ScrollUp(PRScreen * scr) in PR_ScrollUp() argument
46 if (!scr->scroll) in PR_ScrollUp()
48 PR_ClearScreen(scr); in PR_ScrollUp()
54 MI_CpuCopy16((void *)(scr->screen + (y + 1) * PR_SCREEN_WIDTH), in PR_ScrollUp()
55 (void *)(scr->screen + y * PR_SCREEN_WIDTH), PR_SCREEN_WIDTH * sizeof(u16)); in PR_ScrollUp()
58 (void)MI_CpuClear16((void *)(scr->screen in PR_ScrollUp()
63 void PR_PutString(PRScreen * scr, const char *text) in PR_PutString() argument
76 scr->curx = 0; in PR_PutString()
77 ++scr->cury; in PR_PutString()
78 if (scr->cury > PR_SCREEN_HEIGHT - 1) in PR_PutString()
80 scr->cury = PR_SCREEN_HEIGHT - 1; in PR_PutString()
81 PR_ScrollUp(scr); in PR_PutString()
100 scr->screen[scr->cury * PR_SCREEN_WIDTH + scr->curx] = in PR_PutString()
103 ++scr->curx; in PR_PutString()
104 if (scr->curx > PR_SCREEN_WIDTH - 1) in PR_PutString()
106 scr->curx = 0; in PR_PutString()
107 ++scr->cury; in PR_PutString()
108 if (scr->cury > PR_SCREEN_HEIGHT - 1) in PR_PutString()
110 scr->cury = PR_SCREEN_HEIGHT - 1; in PR_PutString()
111 PR_ScrollUp(scr); in PR_PutString()
117 void PR_VPrintString(PRScreen * scr, const char *fmt, va_list vlist) in PR_VPrintString() argument
127 PR_PutString(scr, buf); in PR_VPrintString()
131 void PR_PrintString(PRScreen * scr, const char *fmt, ...) in PR_PrintString() argument
135 PR_VPrintString(scr, fmt, vlist); in PR_PrintString()