1
0
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:
Ivan Savenko
2012-05-17 10:44:48 +00:00
parent 416c08260a
commit 97aeaa9f28
25 changed files with 1121 additions and 960 deletions

View File

@@ -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;
}