From 8cb8c74d403433f75a4cd1d2cb7b5cc78d4af9a5 Mon Sep 17 00:00:00 2001 From: Rob Kendrick Date: Sun, 26 Mar 2006 21:26:47 +0000 Subject: [project @ 2006-03-26 21:26:47 by rjek] Add a 5 pixel 'tail' at the start and end of history node links svn path=/import/netsurf/; revision=2183 --- desktop/history_core.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'desktop') diff --git a/desktop/history_core.c b/desktop/history_core.c index 04e02d736..67cee27ae 100644 --- a/desktop/history_core.c +++ b/desktop/history_core.c @@ -439,6 +439,7 @@ bool history_redraw_entry(struct history *history, int actual_x; struct history_entry *child; colour c = entry == history->current ? 0x0000ff : 0x333333; + int tailsize = 5; if (!plot.bitmap(entry->x, entry->y, WIDTH, HEIGHT, entry->bitmap, 0xffffff)) @@ -456,6 +457,16 @@ bool history_redraw_entry(struct history *history, for (child = entry->forward; child; child = child->next) { if (!plot.line(entry->x + WIDTH, entry->y + HEIGHT / 2, + entry->x + WIDTH + tailsize, + entry->y + HEIGHT / 2, 1, + 0x333333, false, false)) + return false; + if (!plot.line(entry->x + WIDTH + tailsize, + entry->y + HEIGHT / 2, + child->x - tailsize, child->y + HEIGHT / 2, 1, + 0x333333, false, false)) + return false; + if (!plot.line(child->x - tailsize, child->y + HEIGHT / 2, child->x, child->y + HEIGHT / 2, 1, 0x333333, false, false)) return false; -- cgit v1.2.3