Changeset bea947f in mainline for uspace/lib/guigfx/private/canvas.h


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/lib/guigfx/private/canvas.h

    ref20a91 rbea947f  
    7272        /** Rectangle covered by bitmap */
    7373        gfx_rect_t rect;
     74        /** Bitmap flags */
     75        gfx_bitmap_flags_t flags;
     76        /** Key color */
     77        pixel_t key_color;
    7478} canvas_gc_bitmap_t;
    7579
Note: See TracChangeset for help on using the changeset viewer.