diff options
author | Vincent Sanders <vince@kyllikki.org> | 2017-03-01 23:30:29 +0000 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2017-03-01 23:30:29 +0000 |
commit | 44c5aef1c8a79a3a9afbd472d1f6e6e238c8ed5c (patch) | |
tree | fc1a9296fa54f72da331f92c952c14e16ad63370 /desktop/textarea.c | |
parent | 2f5e5620e218d317d5e853fd4ee9d9123b346610 (diff) | |
download | netsurf-44c5aef1c8a79a3a9afbd472d1f6e6e238c8ed5c.tar.gz netsurf-44c5aef1c8a79a3a9afbd472d1f6e6e238c8ed5c.tar.bz2 |
make scrollbar redraw signal errors correctly
allow scrollbar redraw to return error codes and update documentation
commenst appropriately.
Diffstat (limited to 'desktop/textarea.c')
-rw-r--r-- | desktop/textarea.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/desktop/textarea.c b/desktop/textarea.c index af1cd80be..65ee8b82f 100644 --- a/desktop/textarea.c +++ b/desktop/textarea.c @@ -2392,19 +2392,21 @@ void textarea_redraw(struct textarea *ta, int x, int y, colour bg, float scale, ctx->plot->clip(ctx, clip); - if (ta->bar_x != NULL) + if (ta->bar_x != NULL) { scrollbar_redraw(ta->bar_x, x / scale + ta->border_width, y / scale + ta->vis_height - ta->border_width - SCROLLBAR_WIDTH, clip, scale, ctx); + } - if (ta->bar_y != NULL) + if (ta->bar_y != NULL) { scrollbar_redraw(ta->bar_y, x / scale + ta->vis_width - ta->border_width - SCROLLBAR_WIDTH, y / scale + ta->border_width, clip, scale, ctx); + } } |