[escher] Redraw the window when a timer fires

Change-Id: Ib62ad7ec9641e6da61f8c3cbf00fbd470d46326c
This commit is contained in:
Émilie Feral
2017-05-15 15:01:06 +02:00
parent 64b31a2974
commit a30bdf0d8d
11 changed files with 22 additions and 23 deletions

View File

@@ -6,12 +6,14 @@ Timer::Timer(uint32_t period) :
{
}
void Timer::tick() {
bool Timer::tick() {
m_numberOfTicksBeforeFire--;
if (m_numberOfTicksBeforeFire == 0) {
fire();
reset();
return true;
}
return false;
}
void Timer::reset() {