diff options
author | Filippos Karapetis | 2011-02-03 14:37:50 +0000 |
---|---|---|
committer | Filippos Karapetis | 2011-02-03 14:37:50 +0000 |
commit | 74caf6cd714cdb031db78f2fd44cff0378d3f08c (patch) | |
tree | 9bd03be7dfb5554bb232a75e3fb55956b753aab1 /engines/sci/engine | |
parent | 496ca9a669dc81f64fe6199ae12628044d37035f (diff) | |
download | scummvm-rg350-74caf6cd714cdb031db78f2fd44cff0378d3f08c.tar.gz scummvm-rg350-74caf6cd714cdb031db78f2fd44cff0378d3f08c.tar.bz2 scummvm-rg350-74caf6cd714cdb031db78f2fd44cff0378d3f08c.zip |
SCI21: Some robot related changes
- Don't reallocate the frame buffer on each update if its dimensions haven't changed
- Don't attempt to display the currently unsupported v4 robot files (used in PQ:SWAT)
- Signed/unsigned fixes
- Disabled the unused getFrameRect() function
- Some cleanup and reordering
svn-id: r55752
Diffstat (limited to 'engines/sci/engine')
-rw-r--r-- | engines/sci/engine/kgraphics.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/engines/sci/engine/kgraphics.cpp b/engines/sci/engine/kgraphics.cpp index 0065c7ae74..86068abe03 100644 --- a/engines/sci/engine/kgraphics.cpp +++ b/engines/sci/engine/kgraphics.cpp @@ -1414,14 +1414,17 @@ reg_t kRobot(EngineState *s, int argc, reg_t *argv) { case 1: // LSL6 hires (startup) // TODO return NULL_REG; // an integer is expected - case 4: { // start - int id = argv[1].toUint16(); - warning("kRobot(start), id %d", id); + case 4: { // start - we don't really have a use for this one + //int id = argv[1].toUint16(); + //warning("kRobot(start), id %d", id); } break; + case 7: // unknown, called e.g. by Phantasmagoria + warning("kRobot(%d)", subop); + break; case 8: // sync robot->drawNextFrame(); - // Sync + // Signal the engine scripts that the video is done if (robot->getCurFrame() == robot->getFrameCount()) writeSelector(s->_segMan, argv[1], SELECTOR(signal), SIGNAL_REG); break; |