From 84512b4740da273e18b9f468b28f50078b5cbd14 Mon Sep 17 00:00:00 2001 From: Christian Kroll Date: Tue, 1 Nov 2011 13:57:24 +0000 Subject: [PATCH] reverted optimization (10 bytes) which caused colors 1 and 2 to swap --- animations/bitmapscroller.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/animations/bitmapscroller.c b/animations/bitmapscroller.c index 03cf810..6dd39ac 100644 --- a/animations/bitmapscroller.c +++ b/animations/bitmapscroller.c @@ -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;