Changeset bea947f in mainline for uspace/srv/hid/display/cursor.c


Ignore:
Timestamp:
2020-05-24T17:59:02Z (5 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
b3b00b6
Parents:
ef20a91
Message:

Implement bitmap color key to allow transparent cursor background

This seems to be the simplest solution of them all. It will work
on any bit depth except 1 bit per pixel (monochrome), where we would
need to extend the bitmap with a bit mask instead.

File:
1 edited

Legend:

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

    ref20a91 rbea947f  
    109109        gfx_bitmap_params_init(&bparams);
    110110        bparams.rect = cursor->rect;
     111        bparams.flags = bmpf_color_key;
     112        bparams.key_color = PIXEL(0, 0, 255, 255);
    111113
    112114        if (cursor->bitmap == NULL) {
Note: See TracChangeset for help on using the changeset viewer.