diff options
author | richiesams | 2013-07-26 12:27:04 -0500 |
---|---|---|
committer | richiesams | 2013-08-04 13:32:40 -0500 |
commit | c8359ad56ca4bf84ac1110ef1ceccbc9d4dc97dd (patch) | |
tree | 9a5d406bfc0e58ed9278b4f4d4b1c72ac62a2766 | |
parent | 3d223e2123672e00ccc38c2fd3d33dbe814d7156 (diff) | |
download | scummvm-rg350-c8359ad56ca4bf84ac1110ef1ceccbc9d4dc97dd.tar.gz scummvm-rg350-c8359ad56ca4bf84ac1110ef1ceccbc9d4dc97dd.tar.bz2 scummvm-rg350-c8359ad56ca4bf84ac1110ef1ceccbc9d4dc97dd.zip |
ZVISION: Modify loadImage console command to account for new render options
-rw-r--r-- | engines/zvision/console.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/engines/zvision/console.cpp b/engines/zvision/console.cpp index 687be8f086..bfe2609777 100644 --- a/engines/zvision/console.cpp +++ b/engines/zvision/console.cpp @@ -45,11 +45,14 @@ Console::Console(ZVision *engine) : GUI::Debugger(), _engine(engine) { } bool Console::cmdLoadImage(int argc, const char **argv) { - if (argc != 4) { - DebugPrintf("Use loadimage <fileName> <x> <y> to load an image to the screen\n"); + if (argc == 4) + _engine->getRenderManager()->renderImageToScreen(argv[1], atoi(argv[2]), atoi(argv[3])); + else if (argc == 8) + _engine->getRenderManager()->renderImageToScreen(argv[1], atoi(argv[2]), atoi(argv[3]), Common::Rect(atoi(argv[4]), atoi(argv[5]), atoi(argv[6]), atoi(argv[7]))); + else { + DebugPrintf("Use loadimage <fileName> <destinationX> <destinationY> [ <subRectX1> <subRectY2> <subRectX2> <subRectY2> ] to load an image to the screen\n"); return true; } - _engine->getRenderManager()->renderImageToScreen(argv[1], atoi(argv[2]), atoi(argv[3])); return true; } |