Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/ui/src/ui.c

    r3fd38b2 r8965860c  
    524524}
    525525
    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 
    559526/** Get clickmatic from UI.
    560527 *
Note: See TracChangeset for help on using the changeset viewer.