mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-27 22:49:25 +02:00
- moved ColorPutter's to separate SDL_Pixels.h file
- added Channels namespace for accessing subpixels in format-independent way - fixed several big-endian issues - re-generated buld system
This commit is contained in:
@@ -81,15 +81,9 @@ SDL_Surface * CPCXConv::getSurface() const
|
||||
for (int i=0;i<256;i++)
|
||||
{
|
||||
SDL_Color tp;
|
||||
#if (SDL_BYTEORDER == SDL_BIG_ENDIAN)
|
||||
tp.b = pcx[it++];
|
||||
tp.g = pcx[it++];
|
||||
tp.r = pcx[it++];
|
||||
#else
|
||||
tp.r = pcx[it++];
|
||||
tp.g = pcx[it++];
|
||||
tp.b = pcx[it++];
|
||||
#endif
|
||||
tp.unused = 0;
|
||||
ret->format->palette->colors[i] = tp;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user