[Scummvm-cvs-logs] scummvm master -> 7fe61fb64f99408e63a3602fb7eddb9c0f0b279c
clone2727
clone2727 at gmail.com
Sun Nov 18 06:23:19 CET 2012
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
7fe61fb64f PEGASUS: Don't constantly redraw the overview text frame
Commit: 7fe61fb64f99408e63a3602fb7eddb9c0f0b279c
https://github.com/scummvm/scummvm/commit/7fe61fb64f99408e63a3602fb7eddb9c0f0b279c
Author: Matthew Hoops (clone2727 at gmail.com)
Date: 2012-11-17T21:22:32-08:00
Commit Message:
PEGASUS: Don't constantly redraw the overview text frame
Changed paths:
engines/pegasus/pegasus.cpp
diff --git a/engines/pegasus/pegasus.cpp b/engines/pegasus/pegasus.cpp
index 4bd2b27..d32e9dd 100644
--- a/engines/pegasus/pegasus.cpp
+++ b/engines/pegasus/pegasus.cpp
@@ -1133,8 +1133,12 @@ void PegasusEngine::doInterfaceOverview() {
controllerHighlight.hide();
}
- overviewText.setTime(time * 3 + 2, 15);
- overviewText.redrawMovieWorld();
+ // The original just constantly redraws the frame, but that
+ // doesn't actually need to be done.
+ if ((time * 3 + 2) * 40 != overviewText.getTime()) {
+ overviewText.setTime(time * 3 + 2, 15);
+ overviewText.redrawMovieWorld();
+ }
refreshDisplay();
_system->delayMillis(10);
More information about the Scummvm-git-logs
mailing list