Changeset aeb3037 in mainline for uspace/srv/hid/display/display.c


Ignore:
Timestamp:
2020-03-18T17:27:18Z (5 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
0680854
Parents:
1a1271d
git-author:
Jiri Svoboda <jiri@…> (2020-03-18 16:57:15)
git-committer:
Jiri Svoboda <jiri@…> (2020-03-18 17:27:18)
Message:

Allow getting display dimensions

Can be used to position special windows such as panels, or to help
emulate libgui's window placement policy. To support multi-monitor
setups we would rather need to be able to query individual monitors.
But let's keep things simple for now.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/hid/display/display.c

    r1a1271d raeb3037  
    8484        gfx_color_delete(disp->bg_color);
    8585        free(disp);
     86}
     87
     88/** Get display information.
     89 *
     90 * @param disp Display
     91 */
     92void ds_display_get_info(ds_display_t *disp, display_info_t *info)
     93{
     94        info->rect = disp->rect;
    8695}
    8796
Note: See TracChangeset for help on using the changeset viewer.