diff options
Diffstat (limited to 'displaymenu.c')
-rw-r--r-- | displaymenu.c | 22 |
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; + } } } } |