Changes

18 bytes removed ,  08:26, 26 April 2009
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 ==
113

edits