From 63f31692133a085f9aaf9a0635afaa0cc62870d6 Mon Sep 17 00:00:00 2001 From: Kari Salminen Date: Thu, 14 Aug 2008 20:18:13 +0000 Subject: 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 --- engines/cine/gfx.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'engines/cine') 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 -- cgit v1.2.3