Add depth scale to the dive profile

This is intended to be unobtrusive, but add more information for people
who aren't satisfied with the numeric value we put inside the plot to mark
local peaks and troughs.

See ticket #9

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2012-10-29 10:56:20 -07:00
parent 913cc48eb9
commit 029db4aae2
2 changed files with 35 additions and 6 deletions

View file

@ -1211,8 +1211,8 @@ static gboolean expose_event(GtkWidget *widget, GdkEventExpose *event, gpointer
* so effective drawing area is width-2x * height-2y */
drawing_area.width = widget->allocation.width;
drawing_area.height = widget->allocation.height;
drawing_area.x = drawing_area.width / 20.0;
drawing_area.y = drawing_area.height / 20.0;
drawing_area.x = MIN(50,drawing_area.width / 20.0);
drawing_area.y = MIN(50,drawing_area.height / 20.0);
gc.cr = gdk_cairo_create(widget->window);
g_object_set(widget, "has-tooltip", TRUE, NULL);