Changes in uspace/lib/ui/src/ui.c [8965860c:3fd38b2] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/ui/src/ui.c
r8965860c r3fd38b2 524 524 } 525 525 526 /** Get UI screen rectangle. 527 * 528 * @param ui User interface 529 * @param rect Place to store bounding rectangle 530 */ 531 errno_t ui_get_rect(ui_t *ui, gfx_rect_t *rect) 532 { 533 display_info_t info; 534 sysarg_t cols, rows; 535 errno_t rc; 536 537 if (ui->display != NULL) { 538 rc = display_get_info(ui->display, &info); 539 if (rc != EOK) 540 return rc; 541 542 *rect = info.rect; 543 } else if (ui->console != NULL) { 544 rc = console_get_size(ui->console, &cols, &rows); 545 if (rc != EOK) 546 return rc; 547 548 rect->p0.x = 0; 549 rect->p0.y = 0; 550 rect->p1.x = cols; 551 rect->p1.y = rows; 552 } else { 553 return ENOTSUP; 554 } 555 556 return EOK; 557 } 558 526 559 /** Get clickmatic from UI. 527 560 *
Note:
See TracChangeset
for help on using the changeset viewer.