View Single Post
zapS zapS's Avatar

JCF Member

Joined: Jan 2005

Posts: 84

zapS is doing well so far

Aug 9, 2011, 11:50 AM
zapS is offline
Reply With Quote
The CMAP section is alot simpler.
Code:
char  CMAP[4] = "CMAP"; 
int32 Length = 776;
int32 Colorcount = 256; //not sure about this but it's always 256 so i guess its the colorcount
byte  Unknown = 1;  // always 1 afaik
byte  Colors[256][3]; // channels are in the order r,g,b
byte  padding[3]={0,0,0}; // probably to make it finish on a 4-byte boundary