Changeset 0471786 in mainline
- Timestamp:
- 2009-06-16T20:22:58Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 62140db
- Parents:
- 08c9f7d
- Location:
- uspace/srv/fb
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/fb/ega.c
r08c9f7d r0471786 88 88 static void clrscr(void) 89 89 { 90 inti;90 unsigned i; 91 91 92 92 for (i = 0; i < scr_width * scr_height; i++) { … … 130 130 static void scroll(int rows) 131 131 { 132 int i; 132 unsigned i; 133 133 134 if (rows > 0) { 134 135 memmove(scr_addr, ((char *) scr_addr) + rows * scr_width * 2, … … 346 347 case FB_SCROLL: 347 348 i = IPC_GET_ARG1(call); 348 if (i > scr_height || i < -((int) scr_height)) {349 if (i > (int) scr_height || i < -((int) scr_height)) { 349 350 retval = EINVAL; 350 351 break; -
uspace/srv/fb/fb.c
r08c9f7d r0471786 451 451 x = vport->x; 452 452 for (col = 0; col < vport->cols; col++) { 453 if ((row + lines >= 0) && (row + lines < vport->rows)) { 453 if (((int) row + lines >= 0) && 454 ((int) row + lines < (int) vport->rows)) { 454 455 xbp = &vport->backbuf[BB_POS(vport, col, row + lines)]; 455 456 bbp = &vport->backbuf[BB_POS(vport, col, row)];
Note:
See TracChangeset
for help on using the changeset viewer.