aboutsummaryrefslogtreecommitdiff
path: root/engines/cine/gfx.cpp
diff options
context:
space:
mode:
authorKari Salminen2008-08-14 20:18:13 +0000
committerKari Salminen2008-08-14 20:18:13 +0000
commit63f31692133a085f9aaf9a0635afaa0cc62870d6 (patch)
tree90195f8de02a841843558dfb819c2a9b31274b5c /engines/cine/gfx.cpp
parentd3440f2cc5f7cb6e617d8e04047808ba38c8b7d6 (diff)
downloadscummvm-rg350-63f31692133a085f9aaf9a0635afaa0cc62870d6.tar.gz
scummvm-rg350-63f31692133a085f9aaf9a0635afaa0cc62870d6.tar.bz2
scummvm-rg350-63f31692133a085f9aaf9a0635afaa0cc62870d6.zip
Added debug showing of the collision page when pressing the Alt key. Alt isn't used for anything else so one might as well use it for this.
svn-id: r33871
Diffstat (limited to 'engines/cine/gfx.cpp')
-rw-r--r--engines/cine/gfx.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/engines/cine/gfx.cpp b/engines/cine/gfx.cpp
index 3198427117..b8b3bf38dd 100644
--- a/engines/cine/gfx.cpp
+++ b/engines/cine/gfx.cpp
@@ -31,6 +31,7 @@
#include "common/endian.h"
#include "common/system.h"
+#include "common/events.h"
#include "graphics/cursorman.h"
@@ -514,7 +515,13 @@ void FWRenderer::drawFrame() {
/*! \brief Update screen
*/
void FWRenderer::blit() {
- g_system->copyRectToScreen(_backBuffer, 320, 0, 0, 320, 200);
+ if (g_system->getEventManager()->getModifierState() & Common::KBD_ALT) {
+ // Show collision page if the Alt key is being pressed
+ g_system->copyRectToScreen(collisionPage, 320, 0, 0, 320, 200);
+ } else {
+ // Normally show the back buffer
+ g_system->copyRectToScreen(_backBuffer, 320, 0, 0, 320, 200);
+ }
}
/*! \brief Set player command string