aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/engine
diff options
context:
space:
mode:
authorMartin Kiewitz2009-10-12 11:36:42 +0000
committerMartin Kiewitz2009-10-12 11:36:42 +0000
commit250402f21bf95d36e543013112455c6e00eb1e23 (patch)
treeca575fedfb05c5095251bfc47debc07d4ec92e22 /engines/sci/engine
parent9ae7935a1d3311821e8fc3086471d64719e050aa (diff)
downloadscummvm-rg350-250402f21bf95d36e543013112455c6e00eb1e23.tar.gz
scummvm-rg350-250402f21bf95d36e543013112455c6e00eb1e23.tar.bz2
scummvm-rg350-250402f21bf95d36e543013112455c6e00eb1e23.zip
SCI/newgui: kGraph RedrawBox (ReAnimate) is now using class calling (functionality not yet implemented)
svn-id: r44976
Diffstat (limited to 'engines/sci/engine')
-rw-r--r--engines/sci/engine/kgraphics.cpp13
1 files changed, 3 insertions, 10 deletions
diff --git a/engines/sci/engine/kgraphics.cpp b/engines/sci/engine/kgraphics.cpp
index e134c22274..aa8f5b3854 100644
--- a/engines/sci/engine/kgraphics.cpp
+++ b/engines/sci/engine/kgraphics.cpp
@@ -657,16 +657,9 @@ reg_t kGraph(EngineState *s, int argc, reg_t *argv) {
break;
case K_GRAPH_REDRAW_BOX: {
- debugC(2, kDebugLevelGraphics, "redraw_box(%d, %d, %d, %d)\n", argv[1].toSint16(), argv[2].toSint16(), argv[3].toSint16(), argv[4].toSint16());
-
- area.x += s->port->zone.x;
- area.y += s->port->zone.y;
-
- if (s->dyn_views && s->dyn_views->_parent == (GfxContainer *)s->port)
- s->dyn_views->draw(Common::Point(0, 0));
-
- // FIXME: Change to class calling
- //gfxop_update_box(s->gfx_state, area);
+ rect = Common::Rect(x, y, x1, y1);
+ s->_gui->graphRedrawBox(rect);
+ break;
}
break;