From 10fc242aa94c8a9a440baccbf7170b36b4d54cb7 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Thu, 21 May 2020 23:26:06 +0100 Subject: remove unesessary construction of font plot stype in selection redraw --- desktop/selection.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/desktop/selection.c b/desktop/selection.c index 240ab8451..59550548f 100644 --- a/desktop/selection.c +++ b/desktop/selection.c @@ -335,14 +335,11 @@ redraw_handler(const char *text, struct rdw_info *r = (struct rdw_info*)handle; int width, height; int x, y; - plot_font_style_t fstyle; if (!box) { return true; } - font_plot_style_from_css(len_ctx, box->style, &fstyle); - /* \todo - it should be possible to reduce the redrawn area by * considering the 'text', 'length' and 'space' parameters */ box_coords(box, &x, &y); -- cgit v1.2.3