aboutsummaryrefslogtreecommitdiff
path: root/engines/cine/gfx.cpp
diff options
context:
space:
mode:
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