diff options
| author | Johannes Schickel | 2013-08-11 23:36:57 +0200 |
|---|---|---|
| committer | Johannes Schickel | 2013-09-16 15:55:36 +0200 |
| commit | ac66cc921904387518f2e0b2a14670e9598defe4 (patch) | |
| tree | f539abdbbbc443f711e7dbf164fc6f72ee6e6747 /engines/groovie | |
| parent | 9d9833537f98a24b9be37e426917856bb1193be1 (diff) | |
| download | scummvm-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.cpp | 6 |
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++) { |
