aboutsummaryrefslogtreecommitdiff
path: root/image
diff options
context:
space:
mode:
authorEugene Sandulenko2016-06-04 00:33:21 +0200
committerEugene Sandulenko2016-06-04 00:33:21 +0200
commit693ee5ea2b27ac7066e444970cd90faf0b5b231e (patch)
treefb458ef7334c72e24c4b801d3b02f4b12213772f /image
parentc76dfb031e31ef68d59aa1a9c2cf418151a009eb (diff)
downloadscummvm-rg350-693ee5ea2b27ac7066e444970cd90faf0b5b231e.tar.gz
scummvm-rg350-693ee5ea2b27ac7066e444970cd90faf0b5b231e.tar.bz2
scummvm-rg350-693ee5ea2b27ac7066e444970cd90faf0b5b231e.zip
IMAGE: 1bpp BMPs are not upside down. Fixing it.
Diffstat (limited to 'image')
-rw-r--r--image/codecs/bmp_raw.cpp2
1 files changed, 1 insertions, 1 deletions
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();