summaryrefslogtreecommitdiffstats
path: root/dive.h
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2011-09-06 16:44:20 -0700
committerGravatar Linus Torvalds <torvalds@linux-foundation.org>2011-09-06 18:37:57 -0700
commita5a3cba574d5f4a742f57eef590c44da6355d6f6 (patch)
tree920a5a75c52c31db555d877851bee0d888f02be6 /dive.h
parentd314b053014bf74b59050d99516527dced75d483 (diff)
downloadsubsurface-a5a3cba574d5f4a742f57eef590c44da6355d6f6.tar.gz
Fix drawing artifacts with dives that have samples past the dive duration
The UEMIS Zurich SDA keeps recording samples for quite a while after the dive ended. These provide no additional information, but confuse our drawing algorithm as they can cause us to draw both the depth and tank pressure plots beyond the right edge of our canvas. Stop drawing if sample->time.seconds is larger than dive->duration.seconds. Signed-off-by: Dirk Hohndel <dirk@hohndel.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'dive.h')
0 files changed, 0 insertions, 0 deletions