[Scummvm-cvs-logs] SF.net SVN: scummvm:[53049] scummvm/trunk/engines/sci/graphics/transitions. cpp
thebluegr at users.sourceforge.net
thebluegr at users.sourceforge.net
Thu Oct 7 17:30:30 CEST 2010
Revision: 53049
http://scummvm.svn.sourceforge.net/scummvm/?rev=53049&view=rev
Author: thebluegr
Date: 2010-10-07 15:30:30 +0000 (Thu, 07 Oct 2010)
Log Message:
-----------
SCI: Added a define to disable room transitions
This is only useful for development, for speedy runs of games, and should NOT be
used in general, as it may introduce graphics glitches
Modified Paths:
--------------
scummvm/trunk/engines/sci/graphics/transitions.cpp
Modified: scummvm/trunk/engines/sci/graphics/transitions.cpp
===================================================================
--- scummvm/trunk/engines/sci/graphics/transitions.cpp 2010-10-07 14:58:35 UTC (rev 53048)
+++ scummvm/trunk/engines/sci/graphics/transitions.cpp 2010-10-07 15:30:30 UTC (rev 53049)
@@ -37,6 +37,8 @@
namespace Sci {
+//#define DISABLE_TRANSITIONS // uncomment to disable room transitions (for development only! helps in testing games quickly)
+
GfxTransitions::GfxTransitions(GfxScreen *screen, GfxPalette *palette, bool isVGA)
: _screen(screen), _palette(palette), _isVGA(isVGA) {
init();
@@ -116,7 +118,11 @@
void GfxTransitions::setup(int16 number, bool blackoutFlag) {
if (number != -1) {
+#ifndef DISABLE_TRANSITIONS
_number = number;
+#else
+ _number = SCI_TRANSITIONS_NONE;
+#endif
_blackoutFlag = blackoutFlag;
}
}
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