diff options
Diffstat (limited to 'desktop/textarea.c')
-rw-r--r-- | desktop/textarea.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/desktop/textarea.c b/desktop/textarea.c index a0dc860ba..5450dde64 100644 --- a/desktop/textarea.c +++ b/desktop/textarea.c @@ -777,7 +777,7 @@ void textarea_redraw(struct text_area *ta, int x, int y, if (r.y1 > y + ta->vis_height) r.y1 = y + ta->vis_height; - plot.clip(r.x0, r.y0, r.x1, r.y1); + plot.clip(&r); plot.rectangle(r.x0, r.y0, r.x1, r.y1, &plot_style_fill_bg); plot.rectangle(x, y, x + ta->vis_width - 1, y + ta->vis_height - 1, @@ -787,7 +787,7 @@ void textarea_redraw(struct text_area *ta, int x, int y, r.x0 = x + MARGIN_LEFT; if (r.x1 > x + ta->vis_width - MARGIN_RIGHT) r.x1 = x + ta->vis_width - MARGIN_RIGHT; - plot.clip(r.x0, r.y0, r.x1, r.y1); + plot.clip(&r); if (line0 > 0) c_pos = utf8_bounded_length(ta->text, |