From 44c5aef1c8a79a3a9afbd472d1f6e6e238c8ed5c Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Wed, 1 Mar 2017 23:30:29 +0000 Subject: make scrollbar redraw signal errors correctly allow scrollbar redraw to return error codes and update documentation commenst appropriately. --- desktop/textarea.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'desktop/textarea.c') 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); + } } -- cgit v1.2.3