reverted optimization (10 bytes) which caused colors 1 and 2 to swap

This commit is contained in:
Christian Kroll 2011-11-01 13:57:24 +00:00
parent 36c1919153
commit 84512b4740
1 changed files with 1 additions and 1 deletions

View File

@ -58,7 +58,7 @@ static unsigned char bitmap_getAlignedChunk(bitmap_t const *const pBitmap,
unsigned char const x_8 = x / 8;
// we have to go through every bit plane
for (unsigned char i = pBitmap->nBitPlanes; i--;)
for (unsigned char i = 0; i < pBitmap->nBitPlanes; ++i)
{
// generate chunk
unsigned char nPlaneChunk;