diff options
author | Martin Kiewitz | 2016-02-21 14:14:11 +0100 |
---|---|---|
committer | Martin Kiewitz | 2016-02-21 14:14:11 +0100 |
commit | edd1efb0497486c297f3d7df7e9b1be6a2d56548 (patch) | |
tree | 51f532a2d433221ae365bf387e89ce8537aa4bb3 | |
parent | 0941dcdb6751b870392155d7a8524aa1c1567f46 (diff) | |
download | scummvm-rg350-edd1efb0497486c297f3d7df7e9b1be6a2d56548.tar.gz scummvm-rg350-edd1efb0497486c297f3d7df7e9b1be6a2d56548.tar.bz2 scummvm-rg350-edd1efb0497486c297f3d7df7e9b1be6a2d56548.zip |
SCI32: Add debug output to Add/Update/DeleteScreenItem+Planes
debugflag Graphics
level 6 for Add+Delete
level 7 for Update
-rw-r--r-- | engines/sci/engine/kgraphics32.cpp | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/engines/sci/engine/kgraphics32.cpp b/engines/sci/engine/kgraphics32.cpp index cc15bb7958..482074eb99 100644 --- a/engines/sci/engine/kgraphics32.cpp +++ b/engines/sci/engine/kgraphics32.cpp @@ -80,33 +80,38 @@ reg_t kCantBeHere32(EngineState *s, int argc, reg_t *argv) { } reg_t kAddScreenItem(EngineState *s, int argc, reg_t *argv) { - warning("AddScreenItem %x:%x (%s)", argv[0].getSegment(), argv[0].getOffset(), g_sci->getEngineState()->_segMan->getObjectName(argv[0])); + debugCN(6, kDebugLevelGraphics, "kAddScreenItem %x:%x (%s)\n", argv[0].getSegment(), argv[0].getOffset(), g_sci->getEngineState()->_segMan->getObjectName(argv[0])); g_sci->_gfxFrameout->kernelAddScreenItem(argv[0]); return NULL_REG; } reg_t kUpdateScreenItem(EngineState *s, int argc, reg_t *argv) { + debugCN(7, kDebugLevelGraphics, "kUpdateScreenItem %x:%x (%s)\n", argv[0].getSegment(), argv[0].getOffset(), g_sci->getEngineState()->_segMan->getObjectName(argv[0])); g_sci->_gfxFrameout->kernelUpdateScreenItem(argv[0]); return NULL_REG; } reg_t kDeleteScreenItem(EngineState *s, int argc, reg_t *argv) { + debugCN(6, kDebugLevelGraphics, "kDeleteScreenItem %x:%x (%s)\n", argv[0].getSegment(), argv[0].getOffset(), g_sci->getEngineState()->_segMan->getObjectName(argv[0])); g_sci->_gfxFrameout->kernelDeleteScreenItem(argv[0]); return NULL_REG; } reg_t kAddPlane(EngineState *s, int argc, reg_t *argv) { + debugCN(6, kDebugLevelGraphics, "kAddPlane %x:%x (%s)\n", argv[0].getSegment(), argv[0].getOffset(), g_sci->getEngineState()->_segMan->getObjectName(argv[0])); g_sci->_gfxFrameout->kernelAddPlane(argv[0]); return s->r_acc; } -reg_t kDeletePlane(EngineState *s, int argc, reg_t *argv) { - g_sci->_gfxFrameout->kernelDeletePlane(argv[0]); +reg_t kUpdatePlane(EngineState *s, int argc, reg_t *argv) { + debugCN(7, kDebugLevelGraphics, "kUpdatePlane %x:%x (%s)\n", argv[0].getSegment(), argv[0].getOffset(), g_sci->getEngineState()->_segMan->getObjectName(argv[0])); + g_sci->_gfxFrameout->kernelUpdatePlane(argv[0]); return s->r_acc; } -reg_t kUpdatePlane(EngineState *s, int argc, reg_t *argv) { - g_sci->_gfxFrameout->kernelUpdatePlane(argv[0]); +reg_t kDeletePlane(EngineState *s, int argc, reg_t *argv) { + debugCN(6, kDebugLevelGraphics, "kDeletePlane %x:%x (%s)\n", argv[0].getSegment(), argv[0].getOffset(), g_sci->getEngineState()->_segMan->getObjectName(argv[0])); + g_sci->_gfxFrameout->kernelDeletePlane(argv[0]); return s->r_acc; } |