diff options
author | Joakim Bygdell <j.bygdell@gmail.com> | 2017-01-16 21:52:39 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-01-21 06:07:31 -0800 |
commit | dd2791fa1e940eef32cc4969317d68b7d9abb242 (patch) | |
tree | 11cefd24db0e41f79204266220f5b3aa157f61db /profile-widget/ruleritem.cpp | |
parent | f7cecf506f8e2ec117fab0bdca978ff86575afcf (diff) | |
download | subsurface-dd2791fa1e940eef32cc4969317d68b7d9abb242.tar.gz |
Fix tankbar offset at gas switch event
When painting the tankbar the function triggers on change in cylinder index,
as a result the new gascolour are changed at the next sample time point.
On a divecomputer with a reasonable fast sample rate the 2-3s offset are hardly
noticable, especially on a longer dive.
For divecomputers with slow sample rate the 10-30s offset are clearly visible.
This is fixed by start painting the new gascolour at the time point of the switch event rather than the time point of the next sample.
Signed-off-by: Joakim Bygdell <j.bygdell@gmail.com>
Diffstat (limited to 'profile-widget/ruleritem.cpp')
0 files changed, 0 insertions, 0 deletions