mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
913cc48eb9
commit
029db4aae2
2 changed files with 35 additions and 6 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue