aboutsummaryrefslogtreecommitdiff
path: root/graphics/decoders/jpeg.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/jpeg.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/jpeg.cpp')
-rw-r--r--graphics/decoders/jpeg.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/graphics/decoders/jpeg.cpp b/graphics/decoders/jpeg.cpp
index d2829e3576..ff018c799a 100644
--- a/graphics/decoders/jpeg.cpp
+++ b/graphics/decoders/jpeg.cpp
@@ -81,7 +81,7 @@ const Surface *JPEGDecoder::getSurface() const {
const Graphics::Surface *uComponent = getComponent(2);
const Graphics::Surface *vComponent = getComponent(3);
- YUVToRGBMan.convert444(_rgbSurface, Graphics::YUVToRGBManager::kScaleFull, (const byte *)yComponent->getBasePtr(0, 0), (const byte *)uComponent->getBasePtr(0, 0), (const byte *)vComponent->getBasePtr(0, 0), yComponent->w, yComponent->h, yComponent->pitch, uComponent->pitch);
+ YUVToRGBMan.convert444(_rgbSurface, Graphics::YUVToRGBManager::kScaleFull, (const byte *)yComponent->getPixels(), (const byte *)uComponent->getPixels(), (const byte *)vComponent->getPixels(), yComponent->w, yComponent->h, yComponent->pitch, uComponent->pitch);
return _rgbSurface;
}