aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2011-10-04 15:14:54 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2011-10-04 15:14:54 -0700
commitd78e6a48765241ede7b1ac2c68a16f7718ab9459 (patch)
tree2cf54047ffcb05c07b179c0876a927d44b358095
parent53f809ccca43354f443bb8e02621a5625eb38fde (diff)
downloadsubsurface-d78e6a48765241ede7b1ac2c68a16f7718ab9459.tar.gz
Change event symbol to bigger yellow triangle with exclamation point
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r--profile.c18
1 files changed, 12 insertions, 6 deletions
diff --git a/profile.c b/profile.c
index f40742c4a..bc78ac3b4 100644
--- a/profile.c
+++ b/profile.c
@@ -171,14 +171,20 @@ static void plot_one_event(struct graphics_context *gc, struct plot_info *pi, st
/* draw a little tirangular marker and attach tooltip */
x = SCALEX(gc, event->time.seconds);
y = SCALEY(gc, depth);
- set_source_rgba(gc, 1.0, 0.1, 0.1, 0.5);
- cairo_move_to(gc->cr, x-6, y-3);
- cairo_line_to(gc->cr, x , y-3);
- cairo_line_to(gc->cr, x-3, y+3);
- cairo_line_to(gc->cr, x-6, y-3);
+ set_source_rgba(gc, 1.0, 1.0, 0.1, 0.8);
+ cairo_move_to(gc->cr, x-15, y+6);
+ cairo_line_to(gc->cr, x-3 , y+6);
+ cairo_line_to(gc->cr, x-9, y-6);
+ cairo_line_to(gc->cr, x-15, y+6);
cairo_stroke_preserve(gc->cr);
cairo_fill(gc->cr);
- attach_tooltip(x-6, y-3, 6, 6, event->name);
+ set_source_rgba(gc, 0.0, 0.0, 0.0, 0.8);
+ cairo_move_to(gc->cr, x-9, y-3);
+ cairo_line_to(gc->cr, x-9, y+1);
+ cairo_move_to(gc->cr, x-9, y+4);
+ cairo_line_to(gc->cr, x-9, y+4);
+ cairo_stroke(gc->cr);
+ attach_tooltip(x-15, y-6, 12, 12, event->name);
}
static void plot_events(struct graphics_context *gc, struct plot_info *pi, struct dive *dive)