From 7fe61fb64f99408e63a3602fb7eddb9c0f0b279c Mon Sep 17 00:00:00 2001
From: Matthew Hoops
Date: Sun, 18 Nov 2012 00:21:12 -0500
Subject: PEGASUS: Don't constantly redraw the overview text frame

---
 engines/pegasus/pegasus.cpp | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

(limited to 'engines/pegasus')

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);
-- 
cgit v1.2.3