Changeset 9242ad9 in mainline for uspace/srv/hid/display/window.c
- Timestamp:
- 2020-05-20T17:35:07Z (4 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 9901f267
- Parents:
- 5480d5e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hid/display/window.c
r5480d5e r9242ad9 309 309 wnd->min_size = params->min_size; 310 310 wnd->gc = gc; 311 wnd->cursor = wnd->display->cursor[dcurs_arrow]; 311 312 *rgc = wnd; 312 313 return EOK; … … 822 823 } 823 824 825 /** Set window cursor. 826 * 827 * @param wnd Window 828 * @return EOK on success, EINVAL if @a cursor is invalid 829 */ 830 errno_t ds_window_set_cursor(ds_window_t *wnd, display_stock_cursor_t cursor) 831 { 832 if (cursor >= dcurs_arrow && 833 cursor < (display_stock_cursor_t) dcurs_limit) { 834 wnd->cursor = wnd->display->cursor[cursor]; 835 return EOK; 836 } else { 837 return EINVAL; 838 } 839 } 840 824 841 /** @} 825 842 */
Note:
See TracChangeset
for help on using the changeset viewer.