From 4f8e89fbe330a263130ca066a1671297f939e42d Mon Sep 17 00:00:00 2001 From: mrwastl Date: Sat, 15 May 2010 12:15:54 +0200 Subject: call newly introduced NeedsUp() for smooth image looping and text scrolling; added missing tokens --- display.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'display.c') diff --git a/display.c b/display.c index 5040fb9..d72b2e1 100644 --- a/display.c +++ b/display.c @@ -166,6 +166,19 @@ void cGraphLCDDisplay::Action(void) } } + { + GLCD::cSkinDisplay * display = NULL; + + if (mState == StateNormal) + display = mSkin->GetDisplay("normal"); + else if (mState == StateReplay) + display = mSkin->GetDisplay("replay"); + else if (mState == StateMenu) + display = mSkin->GetDisplay("menu"); + if (display && display->NeedsUpdate(currTimeMs ) ) + mUpdate = true; + + } // update Display every minute if (mState == StateNormal && currTimeMs/60000 != mLastTimeMs/60000) { -- cgit v1.2.3