Changeset 6e71a9d8 in mainline for uspace/srv


Ignore:
Timestamp:
2008-12-16T21:25:16Z (16 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
feaa871
Parents:
882d7a8
Message:

resurrect kernel logo

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/fb/fb.c

    r882d7a8 r6e71a9d8  
    180180{
    181181#if defined(FB_INVERT_ENDIAN)
    182         *((uint32_t *) dst)
    183             = (BLUE(rgb, 8) << 16) | (GREEN(rgb, 8) << 8) | RED(rgb, 8)
    184             | (*((uint32_t *) dst) & 0xff0000);
     182        ((uint8_t *) dst)[0] = RED(rgb, 8);
     183        ((uint8_t *) dst)[1] = GREEN(rgb, 8);
     184        ((uint8_t *) dst)[2] = BLUE(rgb, 8);
    185185#else
    186         *((uint32_t *) dst)
    187             = (rgb & 0xffffff) | (*((uint32_t *) dst) & 0xff0000);
     186        ((uint8_t *) dst)[0] = BLUE(rgb, 8);
     187        ((uint8_t *) dst)[1] = GREEN(rgb, 8);
     188        ((uint8_t *) dst)[2] = RED(rgb, 8);
    188189#endif
    189190}
Note: See TracChangeset for help on using the changeset viewer.