aboutsummaryrefslogtreecommitdiff
path: root/graphics/decoders/bmp.cpp
diff options
context:
space:
mode:
authorJohannes Schickel2013-08-03 02:35:31 +0200
committerJohannes Schickel2013-08-03 04:02:49 +0200
commit5111746911958bd35422e9614b0961a6b911ea06 (patch)
tree0b166db3132da17f7a49a40b8914aa1b94e03c05 /graphics/decoders/bmp.cpp
parentf03dc05847a77661c2978619099ab18c82bb94f7 (diff)
downloadscummvm-rg350-5111746911958bd35422e9614b0961a6b911ea06.tar.gz
scummvm-rg350-5111746911958bd35422e9614b0961a6b911ea06.tar.bz2
scummvm-rg350-5111746911958bd35422e9614b0961a6b911ea06.zip
GRAPHICS: Take advantage of Surface::getPixels.
Diffstat (limited to 'graphics/decoders/bmp.cpp')
-rw-r--r--graphics/decoders/bmp.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/graphics/decoders/bmp.cpp b/graphics/decoders/bmp.cpp
index 51e43075a5..2eabbb7631 100644
--- a/graphics/decoders/bmp.cpp
+++ b/graphics/decoders/bmp.cpp
@@ -130,7 +130,7 @@ bool BitmapDecoder::loadStream(Common::SeekableReadStream &stream) {
const int extraDataLength = (srcPitch % 4) ? 4 - (srcPitch % 4) : 0;
if (bitsPerPixel == 8) {
- byte *dst = (byte *)_surface->getBasePtr(0, 0);
+ byte *dst = (byte *)_surface->getPixels();
for (int32 i = 0; i < height; i++) {
stream.read(dst + (height - i - 1) * width, width);