MCPcopy Create free account
hub / github.com/Panzerschrek/Chasm-Reverse / ShiftPalette

Function ShiftPalette

CelDepacker/main.cpp:24–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22#pragma pack(pop)
23
24static void ShiftPalette( unsigned char* const palette )
25{
26 for( unsigned int i= 0; i < 768; i++ )
27 {
28 const int shifted= palette[i] << 2;
29 palette[i]= std::min( shifted, 255 );
30 }
31}
32
33int main( const int argc, const char* const argv[] )
34{

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected