mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-03 14:40:02 +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();
|
||||
|
||||
m_lastTick = base::current_tick();
|
||||
m_running = true;
|
||||
++running_timers;
|
||||
if (!m_running) {
|
||||
m_running = true;
|
||||
++running_timers;
|
||||
}
|
||||
}
|
||||
|
||||
void Timer::stop()
|
||||
|
Loading…
Reference in New Issue
Block a user