Icon.bin: Difference between revisions
No edit summary |
m Simplified the C-code. |
||
| Line 95: | Line 95: | ||
The conversion to RGB888 is made like this (C): | The conversion to RGB888 is made like this (C): | ||
u8 r = (color ) & 0x1f; | u8 r = ((color ) & 0x1f)<<3; | ||
u8 g = (color >> 5) & 0x1f; | u8 g = ((color >> 5) & 0x1f)<<3; | ||
u8 b = (color >> 10) & 0x1f | u8 b = ((color >> 10) & 0x1f)<<3; | ||
== Checksums == | == Checksums == | ||