Start doing gas management using output units

Ok, it's an odd place to start, but this now shows the pressure curve
details and the air usage in the proper units.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
Linus Torvalds 2011-09-06 19:28:31 -07:00
parent 75cb94f067
commit a06d93217f
2 changed files with 42 additions and 9 deletions

2
main.c
View file

@ -205,11 +205,13 @@ static void quit(GtkWidget *w, gpointer data)
static void imperial(GtkWidget *w, gpointer data)
{
output_units = IMPERIAL_units;
repaint_dive();
}
static void metric(GtkWidget *w, gpointer data)
{
output_units = SI_units;
repaint_dive();
}
static GtkActionEntry menu_items[] = {