From 693ee5ea2b27ac7066e444970cd90faf0b5b231e Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Sat, 4 Jun 2016 00:33:21 +0200 Subject: IMAGE: 1bpp BMPs are not upside down. Fixing it. --- image/codecs/bmp_raw.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'image') diff --git a/image/codecs/bmp_raw.cpp b/image/codecs/bmp_raw.cpp index f810678fc2..bab96f693e 100644 --- a/image/codecs/bmp_raw.cpp +++ b/image/codecs/bmp_raw.cpp @@ -54,7 +54,7 @@ const Graphics::Surface *BitmapRawDecoder::decodeFrame(Common::SeekableReadStrea } if (_bitsPerPixel == 1) { - for (int i = _height - 1; i >= 0; i--) { + for (int i = 0; i < _height; i++) { byte *dst = (byte *)_surface->getBasePtr(0, i); for (int j = 0; j != _width;) { byte color = stream.readByte(); -- cgit v1.2.3