diff options
author | Joseph-Eugene Winzer | 2017-07-17 16:40:22 +0200 |
---|---|---|
committer | Thierry Crozat | 2018-01-23 00:00:11 +0000 |
commit | 40c609c40b93b557092b5e9abf68f72be63f33a7 (patch) | |
tree | 4c4a8730847b04b9916af6eefdb3b129b07d241e | |
parent | e9375ea3eeda3597f8269464b1aea06e6ee7c81c (diff) | |
download | scummvm-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.cpp | 7 |
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; } |