remove unesessary construction of font plot stype in selection redraw

This commit is contained in:
Vincent Sanders 2020-05-21 23:26:06 +01:00
parent ba5025e5e8
commit 10fc242aa9
1 changed files with 0 additions and 3 deletions

View File

@ -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);