remove unesessary construction of font plot stype in selection redraw
This commit is contained in:
parent
ba5025e5e8
commit
10fc242aa9
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue