changing the computation of the text y position
This commit is contained in:
parent
0bb241472b
commit
64240f40ee
2
xmenu.c
2
xmenu.c
|
@ -671,7 +671,7 @@ drawtext(XftDraw *draw, XftColor *color, int x, int y, unsigned h, const char *t
|
||||||
if (draw) {
|
if (draw) {
|
||||||
int texty;
|
int texty;
|
||||||
|
|
||||||
texty = y + (h + currfont->ascent) / 2;
|
texty = y + (h - (currfont->ascent + currfont->descent))/2 + currfont->ascent;
|
||||||
XftDrawStringUtf8(draw, color, currfont, x, texty,
|
XftDrawStringUtf8(draw, color, currfont, x, texty,
|
||||||
(XftChar8 *)s, len);
|
(XftChar8 *)s, len);
|
||||||
x += ext.xOff;
|
x += ext.xOff;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user