diff options
author | Filippos Karapetis | 2009-05-13 21:22:53 +0000 |
---|---|---|
committer | Filippos Karapetis | 2009-05-13 21:22:53 +0000 |
commit | 41af51d645cfa6b5c5e33692c9ff7edd2f386763 (patch) | |
tree | 90ff1a851009690ce9d11126adef638717297cfa /engines/sci/engine | |
parent | 049618ce15ee7e6656e5d1dd345161ff23bf3925 (diff) | |
download | scummvm-rg350-41af51d645cfa6b5c5e33692c9ff7edd2f386763.tar.gz scummvm-rg350-41af51d645cfa6b5c5e33692c9ff7edd2f386763.tar.bz2 scummvm-rg350-41af51d645cfa6b5c5e33692c9ff7edd2f386763.zip |
Simplified and re-enabled the debug code that shows pixmaps on screen and moved sciprintf() to tools.cpp
svn-id: r40542
Diffstat (limited to 'engines/sci/engine')
-rw-r--r-- | engines/sci/engine/scriptdebug.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/sci/engine/scriptdebug.cpp b/engines/sci/engine/scriptdebug.cpp index c391543e51..9e962a6449 100644 --- a/engines/sci/engine/scriptdebug.cpp +++ b/engines/sci/engine/scriptdebug.cpp @@ -836,6 +836,7 @@ int c_viewinfo(EngineState *s, const Common::Array<cmd_param_t> &cmdParams) { int palette = cmdParams[1].val; int loops, i; gfxr_view_t *view_pixmaps = NULL; + gfx_color_t transparent = { PaletteEntry(), 0, -1, -1, 0 }; if (!s) { sciprintf("Not in debug state\n"); @@ -859,10 +860,9 @@ int c_viewinfo(EngineState *s, const Common::Array<cmd_param_t> &cmdParams) { int height; Common::Point mod; - if (con_can_handle_pixmaps()) { - view_pixmaps = s->gfx_state->gfxResMan->getView(view, &i, &j, palette); - con_insert_pixmap(gfx_clone_pixmap(view_pixmaps->loops[i].cels[j], s->gfx_state->driver->mode)); - } + // Show pixmap on screen + view_pixmaps = s->gfx_state->gfxResMan->getView(view, &i, &j, palette); + gfxop_draw_cel(s->gfx_state, view, i, j, Common::Point(0,0), transparent, palette); gfxop_get_cel_parameters(s->gfx_state, view, i, j, &width, &height, &mod); |