Changeset db3895d in mainline for uspace/srv/hid/display/cursimg.c


Ignore:
Timestamp:
2021-06-10T17:10:11Z (3 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
af5d62eb
Parents:
90f1f19
Message:

Set cursor shape to I-beam when hovering over text entry

File:
1 edited

Legend:

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

    r90f1f19 rdb3895d  
    11/*
    2  * Copyright (c) 2020 Jiri Svoboda
     2 * Copyright (c) 2021 Jiri Svoboda
    33 * All rights reserved.
    44 *
     
    137137};
    138138
     139static uint8_t ibeam_img[] = {
     140        0, 1, 1, 1, 1, 0, 1, 1, 1, 1, 0,
     141        1, 2, 2, 2, 2, 1, 2, 2, 2, 2, 1,
     142        0, 1, 1, 1, 1, 2, 1, 1, 1, 1, 0,
     143        0, 0, 0, 0, 1, 2, 1, 0, 0, 0, 0,
     144        0, 0, 0, 0, 1, 2, 1, 0, 0, 0, 0,
     145        0, 0, 0, 0, 1, 2, 1, 0, 0, 0, 0,
     146        0, 0, 0, 0, 1, 2, 1, 0, 0, 0, 0,
     147        0, 0, 0, 0, 1, 2, 1, 0, 0, 0, 0,
     148        0, 0, 0, 0, 1, 2, 1, 0, 0, 0, 0,
     149        0, 0, 0, 0, 1, 2, 1, 0, 0, 0, 0,
     150        0, 0, 0, 0, 1, 2, 1, 0, 0, 0, 0,
     151        0, 0, 0, 0, 1, 2, 1, 0, 0, 0, 0,
     152        0, 0, 0, 0, 1, 2, 1, 0, 0, 0, 0,
     153        0, 0, 0, 0, 1, 2, 1, 0, 0, 0, 0,
     154        0, 0, 0, 0, 1, 2, 1, 0, 0, 0, 0,
     155        0, 0, 0, 0, 1, 2, 1, 0, 0, 0, 0,
     156        0, 1, 1, 1, 1, 2, 1, 1, 1, 1, 0,
     157        1, 2, 2, 2, 2, 1, 2, 2, 2, 2, 1,
     158        0, 1, 1, 1, 1, 0, 1, 1, 1, 1, 0
     159};
     160
    139161ds_cursimg_t ds_cursimg[dcurs_limit] = {
    140162        {
     
    157179                .rect = { -7, -7, 8, 8 },
    158180                .image = size_urdl_img
     181        },
     182        {
     183                .rect = { -5, -9, 6, 10 },
     184                .image = ibeam_img
    159185        }
    160186};
Note: See TracChangeset for help on using the changeset viewer.