diff options
author | Johannes Schickel | 2011-04-17 16:35:12 +0200 |
---|---|---|
committer | Johannes Schickel | 2011-04-17 16:35:12 +0200 |
commit | 5e279996eb1f448712d1a6b64218a6cf65159a57 (patch) | |
tree | fb71f76a3de9f4a7e39b8c04c13c3aa081d8da10 /video/codecs/cinepak.cpp | |
parent | 2329a00873e2cea79dae2ffe1839501e05b39fe4 (diff) | |
download | scummvm-rg350-5e279996eb1f448712d1a6b64218a6cf65159a57.tar.gz scummvm-rg350-5e279996eb1f448712d1a6b64218a6cf65159a57.tar.bz2 scummvm-rg350-5e279996eb1f448712d1a6b64218a6cf65159a57.zip |
VIDEO: Prefer Surface::create taking a PixelFormat over the one taking a byte depth.
Certain codecs seem to use a Surface with Bpp 2, but do not have any proper
format description. Whoever is maintaining these should check this commit and
fix the format properly.
Diffstat (limited to 'video/codecs/cinepak.cpp')
-rw-r--r-- | video/codecs/cinepak.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/video/codecs/cinepak.cpp b/video/codecs/cinepak.cpp index 2f5cb73561..28fcd67a03 100644 --- a/video/codecs/cinepak.cpp +++ b/video/codecs/cinepak.cpp @@ -89,7 +89,7 @@ const Graphics::Surface *CinepakDecoder::decodeImage(Common::SeekableReadStream if (!_curFrame.surface) { _curFrame.surface = new Graphics::Surface(); - _curFrame.surface->create(_curFrame.width, _curFrame.height, _pixelFormat.bytesPerPixel); + _curFrame.surface->create(_curFrame.width, _curFrame.height, _pixelFormat); } // Reset the y variable. |