aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/graphics/paint32.cpp
diff options
context:
space:
mode:
authorFilippos Karapetis2011-01-22 13:01:10 +0000
committerFilippos Karapetis2011-01-22 13:01:10 +0000
commit89087b18c79885680ad1f0d17d36975ea7b06f13 (patch)
tree87e07190e5e610881db62cac72f47421f4d23850 /engines/sci/graphics/paint32.cpp
parent7c14cf2b1bddaf4ec9403f49a1fc09ec750ee6c6 (diff)
downloadscummvm-rg350-89087b18c79885680ad1f0d17d36975ea7b06f13.tar.gz
scummvm-rg350-89087b18c79885680ad1f0d17d36975ea7b06f13.tar.bz2
scummvm-rg350-89087b18c79885680ad1f0d17d36975ea7b06f13.zip
SCI21: Allow the game scripts to sync robot videos, like in SSCI. Also, references of the SciEngine class to itself via g_sci have been removed
svn-id: r55422
Diffstat (limited to 'engines/sci/graphics/paint32.cpp')
-rw-r--r--engines/sci/graphics/paint32.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/engines/sci/graphics/paint32.cpp b/engines/sci/graphics/paint32.cpp
index a2cf1c73ad..0167593084 100644
--- a/engines/sci/graphics/paint32.cpp
+++ b/engines/sci/graphics/paint32.cpp
@@ -25,6 +25,7 @@
#include "common/util.h"
#include "common/stack.h"
+
#include "graphics/primitives.h"
#include "sci/sci.h"
@@ -81,8 +82,11 @@ void GfxPaint32::kernelGraphDrawLine(Common::Point startPoint, Common::Point end
}
void GfxPaint32::debugDrawRobot(GuiResourceId robotId) {
- GfxRobot *test = new GfxRobot(g_sci->getResMan(), _screen, _palette, robotId);
- test->draw(0,0);
+ GfxRobot *test = new GfxRobot(g_sci->getResMan(), _screen, _palette);
+ test->init(robotId, 0, 0);
+ while (test->getCurFrame() + 1 < test->getFrameCount()) {
+ test->drawNextFrame();
+ }
delete test;
}