diff options
author | David Sharp <dhsharp@google.com> | 2012-11-14 17:51:14 -0800 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2012-11-14 21:30:22 -0500 |
commit | aa263567caf493a60c6c9f8c21def4bf50f12106 (patch) | |
tree | a2c7a9e74fbb856a172dc025669d13525db1ea41 /trace-graph.c | |
parent | 2f6a458e8baa495fd616cac4874f2b64492e5d10 (diff) | |
download | trace-cmd-aa263567caf493a60c6c9f8c21def4bf50f12106.tar.gz |
kernelshark: Full-height cursor and mark lines
"width" and "height" were swapped, causing the vertical marker and cursor lines
to be drawn with the wrong height.
Link: http://lkml.kernel.org/r/1352944274-21699-4-git-send-email-dhsharp@google.com
Signed-off-by: David Sharp <dhsharp@google.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'trace-graph.c')
-rw-r--r-- | trace-graph.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/trace-graph.c b/trace-graph.c index 6f723508..60e5241d 100644 --- a/trace-graph.c +++ b/trace-graph.c @@ -380,7 +380,7 @@ static void draw_cursor(struct graph_info *ginfo) x = convert_time_to_x(ginfo, ginfo->cursor); gdk_draw_line(ginfo->draw->window, ginfo->draw->style->mid_gc[3], - x, 0, x, ginfo->draw->allocation.width); + x, 0, x, ginfo->draw->allocation.height); } static void draw_marka(struct graph_info *ginfo) @@ -392,7 +392,7 @@ static void draw_marka(struct graph_info *ginfo) x = convert_time_to_x(ginfo, ginfo->marka_time); gdk_draw_line(ginfo->draw->window, green, - x, 0, x, ginfo->draw->allocation.width); + x, 0, x, ginfo->draw->allocation.height); } static void draw_markb(struct graph_info *ginfo) @@ -404,7 +404,7 @@ static void draw_markb(struct graph_info *ginfo) x = convert_time_to_x(ginfo, ginfo->markb_time); gdk_draw_line(ginfo->draw->window, red, - x, 0, x, ginfo->draw->allocation.width); + x, 0, x, ginfo->draw->allocation.height); } static void update_with_backend(struct graph_info *ginfo, @@ -434,7 +434,7 @@ static void draw_line(GtkWidget *widget, gdouble x, struct graph_info *ginfo) { gdk_draw_line(widget->window, widget->style->black_gc, - x, 0, x, widget->allocation.width); + x, 0, x, widget->allocation.height); } static void clear_line(struct graph_info *ginfo, gint x) |