]> git.tdb.fi Git - ext/subsurface.git/commit
Improve tank pressure sac coloring
authorDirk Hohndel <dirk@hohndel.org>
Sat, 19 Nov 2011 19:39:35 +0000 (14:39 -0500)
committerDirk Hohndel <dirk@hohndel.org>
Sat, 19 Nov 2011 20:12:29 +0000 (15:12 -0500)
commite1019cafa87058562d9f5844619841546029a57c
tree3458dc4946b572ff07a13d5c1aa6480c42c0a136
parent4e876b3082b46913d71e0f9bb6ff084aca4a2184
Improve tank pressure sac coloring

This changes the algorithm that picks the sac color to consider
+/- 1 l/min to be the same color (before the color changed every
time you crossed above or below the average which looked silly with
our synthetic "constant sac" values as those are discrete and oscilate
around the average.

This also changes the order in which things are drawn so so that the
pressure plot goes over the depth profile plot (so the red shading of the
dive no longer changes the color of the tank pressure plot).

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
profile.c