diff options
author | Vincent Sanders <vince@netsurf-browser.org> | 2009-07-08 22:04:40 +0000 |
---|---|---|
committer | Vincent Sanders <vince@netsurf-browser.org> | 2009-07-08 22:04:40 +0000 |
commit | f9ecd56f62f833f21b3475f0d1b59bc8e053a03e (patch) | |
tree | 9874485045ec0fc52fccab99ad545bdefb672203 /desktop/history_core.c | |
parent | 651228e64d688e1a565ac88e60b736995ba84012 (diff) | |
download | netsurf-f9ecd56f62f833f21b3475f0d1b59bc8e053a03e.tar.gz netsurf-f9ecd56f62f833f21b3475f0d1b59bc8e053a03e.tar.bz2 |
ploter refactor of rectangle handling
svn path=/trunk/netsurf/; revision=8399
Diffstat (limited to 'desktop/history_core.c')
-rw-r--r-- | desktop/history_core.c | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/desktop/history_core.c b/desktop/history_core.c index 6ec2cc137..d02820b20 100644 --- a/desktop/history_core.c +++ b/desktop/history_core.c @@ -628,6 +628,11 @@ bool history_redraw_entry(struct history *history, int tailsize = 5; int xoffset = x - x0; int yoffset = y - y0; + plot_style_t pstyle_history_rect = { + .stroke_type = PLOT_OP_TYPE_SOLID, + .stroke_colour = c, + .stroke_width = entry == history->current ? 2 : 1, + }; if (clip) { if(!plot.clip(x0 + xoffset, y0 + yoffset, x1 + xoffset, y1 + yoffset)) @@ -637,9 +642,11 @@ bool history_redraw_entry(struct history *history, if (!plot.bitmap(entry->x + xoffset, entry->y + yoffset, WIDTH, HEIGHT, entry->bitmap, 0xffffff, 0)) return false; - if (!plot.rectangle(entry->x - 1 + xoffset, entry->y - 1 + yoffset, - WIDTH + 1, HEIGHT + 1, - entry == history->current ? 2 : 1, c, false, false)) + if (!plot.rectangle(entry->x - 1 + xoffset, + entry->y - 1 + yoffset, + entry->x + xoffset + WIDTH, + entry->y + yoffset + HEIGHT, + &pstyle_history_rect)) return false; if (!nsfont.font_position_in_string(&css_base_style, entry->page.title, |