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