Icon.bin: Difference between revisions

Remark (talk | contribs)
No edit summary
Remark (talk | contribs)
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;
  r <<= 3;
  g <<= 3;
  b <<= 3;


== Checksums ==
== Checksums ==