mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-06 06:58:15 +00:00
Fix bug counting two consecutive Timer::start() calls as two different timers
This commit is contained in:
parent
7a57007fa3
commit
eca3080d24
@ -57,8 +57,10 @@ void Timer::start()
|
|||||||
assert_ui_thread();
|
assert_ui_thread();
|
||||||
|
|
||||||
m_lastTick = base::current_tick();
|
m_lastTick = base::current_tick();
|
||||||
m_running = true;
|
if (!m_running) {
|
||||||
++running_timers;
|
m_running = true;
|
||||||
|
++running_timers;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void Timer::stop()
|
void Timer::stop()
|
||||||
|
Loading…
Reference in New Issue
Block a user