aboutsummaryrefslogtreecommitdiff
path: root/engines/groovie
diff options
context:
space:
mode:
authorJohannes Schickel2013-08-11 23:36:57 +0200
committerJohannes Schickel2013-09-16 15:55:36 +0200
commitac66cc921904387518f2e0b2a14670e9598defe4 (patch)
treef539abdbbbc443f711e7dbf164fc6f72ee6e6747 /engines/groovie
parent9d9833537f98a24b9be37e426917856bb1193be1 (diff)
downloadscummvm-rg350-ac66cc921904387518f2e0b2a14670e9598defe4.tar.gz
scummvm-rg350-ac66cc921904387518f2e0b2a14670e9598defe4.tar.bz2
scummvm-rg350-ac66cc921904387518f2e0b2a14670e9598defe4.zip
GRAPHICS: Implement JPEGDecoder based on libjpeg.
Diffstat (limited to 'engines/groovie')
-rw-r--r--engines/groovie/roq.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/groovie/roq.cpp b/engines/groovie/roq.cpp
index f9a938bfd4..d9c682b98a 100644
--- a/engines/groovie/roq.cpp
+++ b/engines/groovie/roq.cpp
@@ -436,9 +436,9 @@ bool ROQPlayer::processBlockStill(ROQBlockHeader &blockHeader) {
Graphics::JPEGDecoder *jpg = new Graphics::JPEGDecoder();
jpg->loadStream(*_file);
- const byte *y = (const byte *)jpg->getComponent(1)->getPixels();
- const byte *u = (const byte *)jpg->getComponent(2)->getPixels();
- const byte *v = (const byte *)jpg->getComponent(3)->getPixels();
+ const byte *y = (const byte *)jpg->getYComponent().getPixels();
+ const byte *u = (const byte *)jpg->getUComponent().getPixels();
+ const byte *v = (const byte *)jpg->getVComponent().getPixels();
byte *ptr = (byte *)_currBuf->getPixels();
for (int i = 0; i < _currBuf->w * _currBuf->h; i++) {