aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/engine
diff options
context:
space:
mode:
authorMartin Kiewitz2009-10-05 11:42:04 +0000
committerMartin Kiewitz2009-10-05 11:42:04 +0000
commit6e38de3905ec7f5cbbfb991b4a4f960027550b3a (patch)
tree43c8cfe8d0e02fb8891ac0836caaae5f6c8e1acc /engines/sci/engine
parent55e7c29d95b6d77c4e59f1deeae5760f4cf0b29e (diff)
downloadscummvm-rg350-6e38de3905ec7f5cbbfb991b4a4f960027550b3a.tar.gz
scummvm-rg350-6e38de3905ec7f5cbbfb991b4a4f960027550b3a.tar.bz2
scummvm-rg350-6e38de3905ec7f5cbbfb991b4a4f960027550b3a.zip
SCI/newgui: kDrawControl on icon implemented
svn-id: r44658
Diffstat (limited to 'engines/sci/engine')
-rw-r--r--engines/sci/engine/kgraphics.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/engines/sci/engine/kgraphics.cpp b/engines/sci/engine/kgraphics.cpp
index a824b974a7..92a494f051 100644
--- a/engines/sci/engine/kgraphics.cpp
+++ b/engines/sci/engine/kgraphics.cpp
@@ -1451,12 +1451,9 @@ static void _k_draw_control(EngineState *s, reg_t obj, bool inverse) {
break;
case K_CONTROL_ICON:
-
debugC(2, kDebugLevelGraphics, "drawing icon control %04x:%04x to %d,%d\n", PRINT_REG(obj), x, y - 1);
-
- ADD_TO_CURRENT_PICTURE_PORT(sciw_new_icon_control(s->port, obj, area, view, loop, cel,
- (int8)(state & kControlStateFramed), (int8)inverse));
- break;
+ s->gui->drawControlIcon(rect, obj, view, loop, cel, state, inverse);
+ return;
case K_CONTROL_CONTROL:
case K_CONTROL_CONTROL_ALIAS: {