summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlouis <louis.braun@gmx.de>2013-02-15 17:12:36 +0100
committerlouis <louis.braun@gmx.de>2013-02-15 17:12:36 +0100
commit0c453b24c61063c43bec999359723a429fd6011b (patch)
treebd2eeb67f174b0901c96d111181daf1a83478981
parent702f4d7795fa97d0cb716c7933f83225e85a35e0 (diff)
downloadskin-nopacity-0c453b24c61063c43bec999359723a429fd6011b.tar.gz
skin-nopacity-0c453b24c61063c43bec999359723a429fd6011b.tar.bz2
Displaying only active timers in main menu
-rw-r--r--displaymenu.c22
1 files changed, 12 insertions, 10 deletions
diff --git a/displaymenu.c b/displaymenu.c
index 9085187..2d2bbbc 100644
--- a/displaymenu.c
+++ b/displaymenu.c
@@ -102,16 +102,18 @@ void cNopacityDisplayMenu::DrawTimers(bool timersChanged, int numConflicts) {
}
for (int i = 0; i < numTimers; i++) {
if (const cTimer *Timer = SortedTimers[i]) {
- cNopacityTimer *t = menuView->DrawTimer(Timer, currentHeight);
- if (initial)
- if (FadeTime)
- t->SetAlpha(0);
- currentHeight += t->GetHeight() + menuView->spaceMenu;
- if (currentHeight < maxTimersHeight) {
- timers.Add(t);
- } else {
- delete t;
- break;
+ if (Timer->HasFlags(tfActive)) {
+ cNopacityTimer *t = menuView->DrawTimer(Timer, currentHeight);
+ if (initial)
+ if (FadeTime)
+ t->SetAlpha(0);
+ currentHeight += t->GetHeight() + menuView->spaceMenu;
+ if (currentHeight < maxTimersHeight) {
+ timers.Add(t);
+ } else {
+ delete t;
+ break;
+ }
}
}
}