mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-25 05:27:00 +03:00
Simplify text plot position calc.
svn path=/trunk/netsurf/; revision=11088
This commit is contained in:
parent
a01f9508b0
commit
74ecfe0036
@ -1612,9 +1612,7 @@ static void tree_draw_node_element(struct tree *tree,
|
||||
fstyle = &plot_fstyle;
|
||||
}
|
||||
|
||||
plot.text(x + 4, y +
|
||||
((TREE_LINE_HEIGHT * 2 + tree_text_size_px)
|
||||
+ 2) / 4,
|
||||
plot.text(x + 4, y + (TREE_LINE_HEIGHT * 3 + 2) / 4,
|
||||
element->text, strlen(element->text),
|
||||
fstyle);
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user