Changes in uspace/lib/ui/src/ui.c [3fd38b2:8965860c] in mainline
- File:
-
- 1 edited
-
uspace/lib/ui/src/ui.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/ui/src/ui.c
r3fd38b2 r8965860c 524 524 } 525 525 526 /** Get UI screen rectangle.527 *528 * @param ui User interface529 * @param rect Place to store bounding rectangle530 */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 559 526 /** Get clickmatic from UI. 560 527 *
Note:
See TracChangeset
for help on using the changeset viewer.
