mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-01-12 22:09:19 +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;
|
fstyle = &plot_fstyle;
|
||||||
}
|
}
|
||||||
|
|
||||||
plot.text(x + 4, y +
|
plot.text(x + 4, y + (TREE_LINE_HEIGHT * 3 + 2) / 4,
|
||||||
((TREE_LINE_HEIGHT * 2 + tree_text_size_px)
|
|
||||||
+ 2) / 4,
|
|
||||||
element->text, strlen(element->text),
|
element->text, strlen(element->text),
|
||||||
fstyle);
|
fstyle);
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user