diff --git a/src/Bitmap.c b/src/Bitmap.c index 77707d17c..8ea7dfd7a 100644 --- a/src/Bitmap.c +++ b/src/Bitmap.c @@ -193,7 +193,7 @@ static void Png_Expand_GRAYSCALE_4(int width, BitmapCol* palette, cc_uint8* src, static void Png_Expand_GRAYSCALE_8(int width, BitmapCol* palette, cc_uint8* src, BitmapCol* dst) { cc_uint8 rgb; - src += (width - 1) * 2; + src += (width - 1); dst += (width - 1); for (; width >= 4; width -= 4) {