diff options
| author | Sven Hesse | 2008-12-16 20:21:29 +0000 | 
|---|---|---|
| committer | Sven Hesse | 2008-12-16 20:21:29 +0000 | 
| commit | 4d3a4a85f61995c502da0870a691d20f333b63b9 (patch) | |
| tree | 325cda091e4c6729cfe415bda6c529fa94d21742 | |
| parent | 94c14c7c78a911d0f58949937eaf279fdda2a5bc (diff) | |
| download | scummvm-rg350-4d3a4a85f61995c502da0870a691d20f333b63b9.tar.gz scummvm-rg350-4d3a4a85f61995c502da0870a691d20f333b63b9.tar.bz2 scummvm-rg350-4d3a4a85f61995c502da0870a691d20f333b63b9.zip | |
Rotating the object backwards in the magnifing view works now
svn-id: r35396
| -rw-r--r-- | engines/gob/coktelvideo.cpp | 2 | ||||
| -rw-r--r-- | engines/gob/videoplayer.cpp | 4 | ||||
| -rw-r--r-- | engines/gob/videoplayer.h | 3 | 
3 files changed, 6 insertions, 3 deletions
| diff --git a/engines/gob/coktelvideo.cpp b/engines/gob/coktelvideo.cpp index c86ac48459..b7d13333b3 100644 --- a/engines/gob/coktelvideo.cpp +++ b/engines/gob/coktelvideo.cpp @@ -1213,7 +1213,7 @@ CoktelVideo::State Vmd::processFrame(uint16 frame) {  	if (!_vidMem)  		setVideoMemory(); -	for (uint16 i = 0; i < _partsPerFrame; i++) { +	for (uint16 i = 0; (i < _partsPerFrame) && (frame < _framesCount); i++) {  		Part &part = _frames[frame].parts[i];  		if (part.type == kPartTypeAudio) { diff --git a/engines/gob/videoplayer.cpp b/engines/gob/videoplayer.cpp index 4fa07af5dc..ef9d663b6f 100644 --- a/engines/gob/videoplayer.cpp +++ b/engines/gob/videoplayer.cpp @@ -38,7 +38,7 @@  namespace Gob { -const char *VideoPlayer::_extensions[] = { "IMD", "VMD" }; +const char *VideoPlayer::_extensions[] = { "IMD", "VMD", "RMD" };  VideoPlayer::Video::Video(GobEngine *vm) : _vm(vm), _fileName(0), _stream(0), _video(0) {  } @@ -63,6 +63,8 @@ bool VideoPlayer::Video::open(const char *fileName, Type which) {  		_video = new Imd();  	} else if (which == kVideoTypeVMD) {  		_video = new Vmd(_vm->_video->_palLUT); +	} else if (which == kVideoTypeRMD) { +		_video = new Vmd(_vm->_video->_palLUT);  	} else {  		warning("Couldn't open video \"%s\": Invalid video Type", fileName);  		close(); diff --git a/engines/gob/videoplayer.h b/engines/gob/videoplayer.h index 65d1e2b2cf..d7b55fa98f 100644 --- a/engines/gob/videoplayer.h +++ b/engines/gob/videoplayer.h @@ -48,7 +48,8 @@ public:  	enum Type {  		kVideoTypeTry = -1,  		kVideoTypeIMD = 0, -		kVideoTypeVMD = 1 +		kVideoTypeVMD = 1, +		kVideoTypeRMD = 2  	};  	VideoPlayer(GobEngine *vm); | 
