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/tga.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/tga.cpp')
-rw-r--r-- | graphics/decoders/tga.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/graphics/decoders/tga.cpp b/graphics/decoders/tga.cpp index 3ee506f31b..a9f136d238 100644 --- a/graphics/decoders/tga.cpp +++ b/graphics/decoders/tga.cpp @@ -272,7 +272,7 @@ bool TGADecoder::readData(Common::SeekableReadStream &tga, byte imageType, byte } else if (imageType == TYPE_BW) { _surface.create(_surface.w, _surface.h, _format); - byte *data = (byte *)_surface.getBasePtr(0, 0); + byte *data = (byte *)_surface.getPixels(); uint32 count = _surface.w * _surface.h; while (count-- > 0) { @@ -318,7 +318,7 @@ bool TGADecoder::readDataRLE(Common::SeekableReadStream &tga, byte imageType, by if (imageType == TYPE_RLE_TRUECOLOR || imageType == TYPE_RLE_BW || imageType == TYPE_RLE_CMAP) { _surface.create(_surface.w, _surface.h, _format); uint32 count = _surface.w * _surface.h; - byte *data = (byte *)_surface.getBasePtr(0, 0); + byte *data = (byte *)_surface.getPixels(); while (count > 0) { uint32 header = tga.readByte(); |