87,7 → 87,7 |
|
static void clrscr(void) |
{ |
int i; |
unsigned i; |
|
for (i = 0; i < scr_width * scr_height; i++) { |
scr_addr[i * 2] = ' '; |
129,7 → 129,8 |
|
static void scroll(int rows) |
{ |
int i; |
unsigned i; |
|
if (rows > 0) { |
memmove(scr_addr, ((char *) scr_addr) + rows * scr_width * 2, |
scr_width * scr_height * 2 - rows * scr_width * 2); |
318,6 → 319,9 |
case FB_GET_CSIZE: |
ipc_answer_2(callid, EOK, scr_width, scr_height); |
continue; |
case FB_GET_COLOR_CAP: |
ipc_answer_1(callid, EOK, FB_CCAP_INDEXED); |
continue; |
case FB_CLEAR: |
clrscr(); |
retval = 0; |
345,7 → 349,7 |
break; |
case FB_SCROLL: |
i = IPC_GET_ARG1(call); |
if (i > scr_height || i < -((int) scr_height)) { |
if (i > (int) scr_height || i < -((int) scr_height)) { |
retval = EINVAL; |
break; |
} |