aboutsummaryrefslogtreecommitdiffstats
path: root/trace-graph.c
diff options
context:
space:
mode:
Diffstat (limited to 'trace-graph.c')
-rw-r--r--trace-graph.c16
1 files changed, 12 insertions, 4 deletions
diff --git a/trace-graph.c b/trace-graph.c
index d8367ae..b20aabe 100644
--- a/trace-graph.c
+++ b/trace-graph.c
@@ -55,7 +55,7 @@
55#define PLOT_GIVE 2 55#define PLOT_GIVE 2
56#define PLOT_BEGIN 80 56#define PLOT_BEGIN 80
57#define PLOT_SEP 50 57#define PLOT_SEP 50
58#define MAX_TRI_TIME 10000000 58#define MAX_TRI_TIME 1000000
59#define PLOT_LINE(plot) (PLOT_SEP * (plot) + PLOT_BEGIN + PLOT_SIZE) 59#define PLOT_LINE(plot) (PLOT_SEP * (plot) + PLOT_BEGIN + PLOT_SIZE)
60#define PLOT_TOP(plot) (PLOT_LINE(plot) - PLOT_SIZE * 2) 60#define PLOT_TOP(plot) (PLOT_LINE(plot) - PLOT_SIZE * 2)
61#define PLOT_BOX_TOP(plot) (PLOT_LINE(plot) - PLOT_SIZE) 61#define PLOT_BOX_TOP(plot) (PLOT_LINE(plot) - PLOT_SIZE)
@@ -1695,7 +1695,7 @@ static void draw_plot_box(struct graph_info *ginfo, int i,
1695 fill, 1695 fill,
1696 x1, y, 1696 x1, y,
1697 x2 - x1, size); 1697 x2 - x1, size);
1698 if (!thin && fill && is_high_res(ginfo)) { 1698 if (!thin && fill && (x2 - x1 > 1)) {
1699 gdk_draw_rectangle(ginfo->curr_pixmap, 1699 gdk_draw_rectangle(ginfo->curr_pixmap,
1700 ginfo->draw->style->black_gc, 1700 ginfo->draw->style->black_gc,
1701 FALSE, 1701 FALSE,
@@ -1703,8 +1703,16 @@ static void draw_plot_box(struct graph_info *ginfo, int i,
1703 x2 - x1, size); 1703 x2 - x1, size);
1704 } 1704 }
1705 1705
1706 if (label) 1706 if (label) {
1707 draw_plot_label(ginfo, label, x1 + 1, y + 1, x2 - x1 - 2); 1707 if (!thin)
1708 draw_plot_label(ginfo, label, x1 + 1,
1709 y + 1, x2 - x1 - 2);
1710 else
1711 draw_plot_label(ginfo, label, (x1 + x2) / 2,
1712 y - PLOT_BOX_SIZE,
1713 x2 - x1 - 2);
1714 }
1715
1708} 1716}
1709 1717
1710static void draw_plot_release(struct graph_info *ginfo, int i, 1718static void draw_plot_release(struct graph_info *ginfo, int i,