diff options
author | Johannes Schickel | 2013-08-03 02:35:31 +0200 |
---|---|---|
committer | Johannes Schickel | 2013-08-03 04:02:49 +0200 |
commit | 5111746911958bd35422e9614b0961a6b911ea06 (patch) | |
tree | 0b166db3132da17f7a49a40b8914aa1b94e03c05 /graphics/decoders/bmp.cpp | |
parent | f03dc05847a77661c2978619099ab18c82bb94f7 (diff) | |
download | scummvm-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.cpp | 2 |
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); |