diff options
Diffstat (limited to 'video/smk_decoder.cpp')
| -rw-r--r-- | video/smk_decoder.cpp | 13 | 
1 files changed, 5 insertions, 8 deletions
diff --git a/video/smk_decoder.cpp b/video/smk_decoder.cpp index a9f2eeeb5b..05a20ecd8d 100644 --- a/video/smk_decoder.cpp +++ b/video/smk_decoder.cpp @@ -18,9 +18,6 @@   * along with this program; if not, write to the Free Software   * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.   * - * $URL$ - * $Id$ - *   */  // Based on http://wiki.multimedia.cx/index.php?title=Smacker @@ -29,11 +26,11 @@  #include "video/smk_decoder.h" -#include "common/archive.h"  #include "common/endian.h"  #include "common/util.h"  #include "common/stream.h"  #include "common/system.h" +#include "common/textconsole.h"  #include "audio/audiostream.h"  #include "audio/mixer.h" @@ -379,13 +376,13 @@ bool SmackerDecoder::loadStream(Common::SeekableReadStream *stream) {  	_header.signature = _fileStream->readUint32BE();  	// No BINK support available -	if (_header.signature == MKID_BE('BIKi')) { +	if (_header.signature == MKTAG('B','I','K','i')) {  		delete _fileStream;  		_fileStream = 0;  		return false;  	} -	assert(_header.signature == MKID_BE('SMK2') || _header.signature == MKID_BE('SMK4')); +	assert(_header.signature == MKTAG('S','M','K','2') || _header.signature == MKTAG('S','M','K','4'));  	uint32 width = _fileStream->readUint32LE();  	uint32 height = _fileStream->readUint32LE(); @@ -483,7 +480,7 @@ bool SmackerDecoder::loadStream(Common::SeekableReadStream *stream) {  	_surface = new Graphics::Surface();  	// Height needs to be doubled if we have flags (Y-interlaced or Y-doubled) -	_surface->create(width, height * (_header.flags ? 2 : 1), 1); +	_surface->create(width, height * (_header.flags ? 2 : 1), Graphics::PixelFormat::createFormatCLUT8());  	memset(_palette, 0, 3 * 256);  	return true; @@ -615,7 +612,7 @@ const Graphics::Surface *SmackerDecoder::decodeNextFrame() {  			break;  		case SMK_BLOCK_FULL:  			// Smacker v2 has one mode, Smacker v4 has three -			if (_header.signature == MKID_BE('SMK2')) { +			if (_header.signature == MKTAG('S','M','K','2')) {  				mode = 0;  			} else {  				// 00 - mode 0  | 
