diff options
| author | Filippos Karapetis | 2009-10-11 18:42:52 +0000 | 
|---|---|---|
| committer | Filippos Karapetis | 2009-10-11 18:42:52 +0000 | 
| commit | 07736ede1908b9705aed9180f072e9f77fd9d9b0 (patch) | |
| tree | 55d30b14bbf339a19e09ba584163d9adb17b8be0 | |
| parent | 222b0d38876e39b71910600edfc80c673643a3b8 (diff) | |
| download | scummvm-rg350-07736ede1908b9705aed9180f072e9f77fd9d9b0.tar.gz scummvm-rg350-07736ede1908b9705aed9180f072e9f77fd9d9b0.tar.bz2 scummvm-rg350-07736ede1908b9705aed9180f072e9f77fd9d9b0.zip | |
Added kSetPort case with 4 parameters (used in the ending of LSL6)
svn-id: r44938
| -rw-r--r-- | engines/sci/engine/kgraphics.cpp | 11 | 
1 files changed, 6 insertions, 5 deletions
| diff --git a/engines/sci/engine/kgraphics.cpp b/engines/sci/engine/kgraphics.cpp index 7bc589e749..71bab481f3 100644 --- a/engines/sci/engine/kgraphics.cpp +++ b/engines/sci/engine/kgraphics.cpp @@ -1253,22 +1253,23 @@ reg_t kSetPort(EngineState *s, int argc, reg_t *argv) {  	int16 picTop, picLeft;  	switch (argc) { -		case 1: +	case 1:  		portPtr = argv[0].toSint16();  		s->_gui->setPort(portPtr);  		break; -		case 6: +	case 4: +	case 6:  		picRect.top = argv[0].toSint16();  		picRect.left = argv[1].toSint16();  		picRect.bottom = argv[2].toSint16();  		picRect.right = argv[3].toSint16(); -		picTop = argv[4].toSint16(); -		picLeft = argv[5].toSint16(); +		picTop = (argc == 6) ? argv[4].toSint16() : 0; +		picLeft = (argc == 6) ? argv[5].toSint16() : 0;  		s->_gui->setPortPic(picRect, picTop, picLeft);  		break; -		default: +	default:  		error("SetPort was called with %d parameters", argc);  		break;  	} | 
