diff options
author | Johannes Schickel | 2011-04-17 16:31:49 +0200 |
---|---|---|
committer | Johannes Schickel | 2011-04-17 16:31:49 +0200 |
commit | b3f0eb8a9db27d3b0659eeb7ce53c69849342439 (patch) | |
tree | bbe4cd920a591075a861434370bc5f76688cb8a0 /engines/sword25/fmv | |
parent | 9d7f7fc4b625918340ad3a081e44526a583e0ee0 (diff) | |
download | scummvm-rg350-b3f0eb8a9db27d3b0659eeb7ce53c69849342439.tar.gz scummvm-rg350-b3f0eb8a9db27d3b0659eeb7ce53c69849342439.tar.bz2 scummvm-rg350-b3f0eb8a9db27d3b0659eeb7ce53c69849342439.zip |
SWORD25: Prefer Surface::create taking a PixelFormat over the one taking a byte depth.
I am not 100% sure whether the surfaces all use the same format as the screen,
but a quick test showed that it still works fine. In case this is wrong please
set them up with the correct format.
Diffstat (limited to 'engines/sword25/fmv')
-rw-r--r-- | engines/sword25/fmv/theora_decoder.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sword25/fmv/theora_decoder.cpp b/engines/sword25/fmv/theora_decoder.cpp index e9901c04b0..4f6f52509d 100644 --- a/engines/sword25/fmv/theora_decoder.cpp +++ b/engines/sword25/fmv/theora_decoder.cpp @@ -289,7 +289,7 @@ bool TheoraDecoder::loadStream(Common::SeekableReadStream *stream) { _surface = new Graphics::Surface(); - _surface->create(_theoraInfo.frame_width, _theoraInfo.frame_height, 4); + _surface->create(_theoraInfo.frame_width, _theoraInfo.frame_height, g_system->getScreenFormat()); return true; } |