aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph-Eugene Winzer2017-07-17 16:40:22 +0200
committerThierry Crozat2018-01-23 00:00:11 +0000
commit40c609c40b93b557092b5e9abf68f72be63f33a7 (patch)
tree4c4a8730847b04b9916af6eefdb3b129b07d241e
parente9375ea3eeda3597f8269464b1aea06e6ee7c81c (diff)
downloadscummvm-rg350-40c609c40b93b557092b5e9abf68f72be63f33a7.tar.gz
scummvm-rg350-40c609c40b93b557092b5e9abf68f72be63f33a7.tar.bz2
scummvm-rg350-40c609c40b93b557092b5e9abf68f72be63f33a7.zip
SUPERNOVA: Adds debugging code for rendering available sections
-rw-r--r--engines/supernova/supernova.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/engines/supernova/supernova.cpp b/engines/supernova/supernova.cpp
index 9abea6baf7..c62efeac3f 100644
--- a/engines/supernova/supernova.cpp
+++ b/engines/supernova/supernova.cpp
@@ -153,6 +153,12 @@ Common::Error SupernovaEngine::run() {
(_event.kbd.flags & Common::KBD_CTRL)) {
_console->attach();
}
+ if (_event.kbd.keycode == Common::KEYCODE_s) {
+ for (int i = 0; i < _currentImage->_numSections; ++i) {
+ gm.drawImage(i);
+ _system->updateScreen();
+ }
+ }
gm.processInput(_event.kbd);
break;
@@ -164,6 +170,7 @@ Common::Error SupernovaEngine::run() {
case Common::EVENT_MOUSEMOVE:
gm.processInput(_event.type, _event.mouse.x, _event.mouse.y);
break;
+
default:
break;
}