aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Hoops2012-11-18 00:21:12 -0500
committerMatthew Hoops2012-11-18 00:22:32 -0500
commit7fe61fb64f99408e63a3602fb7eddb9c0f0b279c (patch)
treec0ea7dfffd93354c9915ffe6ffb036bb00974088
parent4e8dca1c277028ca6c96897ade764f097a39de66 (diff)
downloadscummvm-rg350-7fe61fb64f99408e63a3602fb7eddb9c0f0b279c.tar.gz
scummvm-rg350-7fe61fb64f99408e63a3602fb7eddb9c0f0b279c.tar.bz2
scummvm-rg350-7fe61fb64f99408e63a3602fb7eddb9c0f0b279c.zip
PEGASUS: Don't constantly redraw the overview text frame
-rw-r--r--engines/pegasus/pegasus.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/engines/pegasus/pegasus.cpp b/engines/pegasus/pegasus.cpp
index 4bd2b27f9b..d32e9dd8ea 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);