Changes in / [05fb96b:40a2af3] in mainline
- Location:
- uspace
- Files:
-
- 10 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hid/console/console.c
r05fb96b r40a2af3 60 60 #define CONSOLE_MARGIN 12 61 61 62 #define STATE_START 1 0062 #define STATE_START 110 63 63 #define STATE_TOP 8 64 64 #define STATE_SPACE 4 … … 368 368 static console_t *cons_find_icon(sysarg_t x, sysarg_t y) 369 369 { 370 sysarg_t status_start = 371 STATE_START + (xres - 800) / 2 + CONSOLE_MARGIN; 370 sysarg_t status_start = STATE_START + (xres - 800) / 2; 372 371 373 372 if ((y < STATE_TOP) || (y >= STATE_TOP + STATE_HEIGHT)) … … 380 379 return NULL; 381 380 382 if (((x - status_start) % (STATE_WIDTH + STATE_SPACE)) >= STATE_WIDTH)381 if (((x - status_start) % (STATE_WIDTH + STATE_SPACE)) < STATE_SPACE) 383 382 return NULL; 384 383 … … 895 894 fb_vp_get_caps(fb_sess, console_vp, &ccaps); 896 895 897 mouse.x = xres / 2;898 mouse.y = yres / 2;899 896 mouse.pressed = false; 900 897 -
uspace/srv/hid/fb/port/kfb.c
r05fb96b r40a2af3 422 422 { 423 423 if (kfb.backbuf == NULL) { 424 kfb.backbuf = 425 malloc(kfb.width * kfb.height * kfb.pixel_bytes); 424 kfb.backbuf = malloc(kfb.size); 426 425 if (kfb.backbuf == NULL) 427 426 return ENOMEM; 428 427 } 429 428 430 for (sysarg_t y = 0; y < kfb.height; y++) 431 memcpy(kfb.backbuf + y * kfb.width * kfb.pixel_bytes, 432 kfb.addr + FB_POS(0, y), kfb.width * kfb.pixel_bytes); 433 429 memcpy(kfb.backbuf, kfb.addr, kfb.size); 434 430 return EOK; 435 431 } … … 440 436 return ENOENT; 441 437 442 for (sysarg_t y = 0; y < kfb.height; y++) 443 memcpy(kfb.addr + FB_POS(0, y), 444 kfb.backbuf + y * kfb.width * kfb.pixel_bytes, 445 kfb.width * kfb.pixel_bytes); 446 438 memcpy(kfb.addr, kfb.backbuf, kfb.size); 447 439 return EOK; 448 440 }
Note:
See TracChangeset
for help on using the changeset viewer.