diff options
| author | Johannes Schickel | 2011-04-17 17:25:08 +0200 |
|---|---|---|
| committer | Johannes Schickel | 2011-04-17 20:55:49 +0200 |
| commit | f90bbf9cfad20c6122b98d8b2f99c2cdaa5ce5d6 (patch) | |
| tree | a570b11c0502999bf2f3b580cd496dc44b0f0478 /video/codecs | |
| parent | 5e279996eb1f448712d1a6b64218a6cf65159a57 (diff) | |
| download | scummvm-rg350-f90bbf9cfad20c6122b98d8b2f99c2cdaa5ce5d6.tar.gz scummvm-rg350-f90bbf9cfad20c6122b98d8b2f99c2cdaa5ce5d6.tar.bz2 scummvm-rg350-f90bbf9cfad20c6122b98d8b2f99c2cdaa5ce5d6.zip | |
VIDEO: Prefer Surface::format over Surface::bytesPerPixel.
Diffstat (limited to 'video/codecs')
| -rw-r--r-- | video/codecs/indeo3.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/video/codecs/indeo3.cpp b/video/codecs/indeo3.cpp index 53ab56dd2d..742b30243f 100644 --- a/video/codecs/indeo3.cpp +++ b/video/codecs/indeo3.cpp @@ -322,10 +322,10 @@ const Graphics::Surface *Indeo3Decoder::decodeImage(Common::SeekableReadStream * const uint32 color = _pixelFormat.RGBToColor(r, g, b); - for (uint32 sW = 0; sW < scaleWidth; sW++, rowDest += _surface->bytesPerPixel) { - if (_surface->bytesPerPixel == 1) + for (uint32 sW = 0; sW < scaleWidth; sW++, rowDest += _surface->format.bytesPerPixel) { + if (_surface->format.bytesPerPixel == 1) *((uint8 *)rowDest) = (uint8)color; - else if (_surface->bytesPerPixel == 2) + else if (_surface->format.bytesPerPixel == 2) *((uint16 *)rowDest) = (uint16)color; } } |
