[Scummvm-cvs-logs] SF.net SVN: scummvm:[33871] scummvm/trunk/engines/cine/gfx.cpp
buddha_ at users.sourceforge.net
buddha_ at users.sourceforge.net
Thu Aug 14 22:18:14 CEST 2008
Revision: 33871
http://scummvm.svn.sourceforge.net/scummvm/?rev=33871&view=rev
Author: buddha_
Date: 2008-08-14 20:18:13 +0000 (Thu, 14 Aug 2008)
Log Message:
-----------
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.
Modified Paths:
--------------
scummvm/trunk/engines/cine/gfx.cpp
Modified: scummvm/trunk/engines/cine/gfx.cpp
===================================================================
--- scummvm/trunk/engines/cine/gfx.cpp 2008-08-14 19:48:39 UTC (rev 33870)
+++ scummvm/trunk/engines/cine/gfx.cpp 2008-08-14 20:18:13 UTC (rev 33871)
@@ -31,6 +31,7 @@
#include "common/endian.h"
#include "common/system.h"
+#include "common/events.h"
#include "graphics/cursorman.h"
@@ -514,7 +515,13 @@
/*! \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
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list