Changeset 807


Ignore:
Timestamp:
Apr 18, 2006, 11:57:15 AM (16 years ago)
Author:
Sam Hocevar
Message:
  • Fixed a bug in _cucul_argb32_to_rgb24fg/bg().
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/cucul/colour.c

    r789 r807  
    177177
    178178#define RGB12TO24(i) \
    179    ((uint32_t)((i & 0xf00) >> 8) * 0x11 \
    180   | (uint32_t)((i & 0x0f0) >> 4) * 0x11 \
    181   | (uint32_t)(i & 0x00f) * 0x11)
     179   (((uint32_t)((i & 0xf00) >> 8) * 0x110000) \
     180  | ((uint32_t)((i & 0x0f0) >> 4) * 0x001100) \
     181  | ((uint32_t)(i & 0x00f) * 0x000011))
    182182
    183183uint32_t _cucul_argb32_to_rgb24fg(uint32_t c)
Note: See TracChangeset for help on using the changeset viewer.