summaryrefslogtreecommitdiff
path: root/desktop/history_core.c
diff options
context:
space:
mode:
authorRob Kendrick <rjek@netsurf-browser.org>2006-03-26 21:26:47 +0000
committerRob Kendrick <rjek@netsurf-browser.org>2006-03-26 21:26:47 +0000
commit8cb8c74d403433f75a4cd1d2cb7b5cc78d4af9a5 (patch)
tree42dc0daa15a937c412694a38cfb41bbf4b928ea2 /desktop/history_core.c
parentc2bddcee466653f0739797be94fbcdc12614dabc (diff)
downloadnetsurf-8cb8c74d403433f75a4cd1d2cb7b5cc78d4af9a5.tar.gz
netsurf-8cb8c74d403433f75a4cd1d2cb7b5cc78d4af9a5.tar.bz2
[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
Diffstat (limited to 'desktop/history_core.c')
-rw-r--r--desktop/history_core.c11
1 files changed, 11 insertions, 0 deletions
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;