Changeset 563573b in mainline for uspace/lib/c/include/io/pixel.h


Ignore:
Timestamp:
2012-11-24T17:49:48Z (12 years ago)
Author:
Petr Koupy <petr.koupy@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
c8e2ac5
Parents:
ba733e83
Message:

Resolved Ticket #484 (Window movement is invisible). Fast enough to be used in Qemu/non-KVM.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/include/io/pixel.h

    rba733e83 r563573b  
    4242        ((channel) >> (8 - (bits)))
    4343
     44#define INVERT(pixel) ((pixel) ^ 0x00ffffff)
     45
    4446#define ALPHA(pixel)  ((pixel) >> 24)
    4547#define RED(pixel)    (((pixel) & 0x00ff0000) >> 16)
Note: See TracChangeset for help on using the changeset viewer.