mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Use renderer function for divelist depth field too
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
fa2a6fb763
commit
2a45f6dbc3
2 changed files with 24 additions and 22 deletions
7
dive.h
7
dive.h
|
@ -86,9 +86,14 @@ typedef struct {
|
|||
pressure_t start, end;
|
||||
} cylinder_t;
|
||||
|
||||
static inline double mm_to_feet(int mm)
|
||||
{
|
||||
return mm * 0.00328084;
|
||||
}
|
||||
|
||||
static inline int to_feet(depth_t depth)
|
||||
{
|
||||
return depth.mm * 0.00328084 + 0.5;
|
||||
return mm_to_feet(depth.mm) + 0.5;
|
||||
}
|
||||
|
||||
static double mkelvin_to_C(int mkelvin)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue