mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-24 10:45:46 +00:00
Added kSetPort case with 4 parameters (used in the ending of LSL6)
svn-id: r44938
This commit is contained in:
parent
222b0d3887
commit
07736ede19
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user