Changeset c7f9037 in mainline
- Timestamp:
- 2011-09-09T23:26:18Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- cccc091
- Parents:
- b7c33b0
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hid/fb/port/kfb.c
rb7c33b0 rc7f9037 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.