projects
/
xmenu
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
0bb2414
)
changing the computation of the text y position
author
phillbush
<phillbush@cock.li>
Thu, 30 Jul 2020 01:59:25 +0000
(22:59 -0300)
committer
phillbush
<phillbush@cock.li>
Thu, 30 Jul 2020 01:59:25 +0000
(22:59 -0300)
xmenu.c
patch
|
blob
|
blame
|
history
diff --git
a/xmenu.c
b/xmenu.c
index
4a4ffca
..
4d1c223
100644
(file)
--- a/
xmenu.c
+++ b/
xmenu.c
@@
-671,7
+671,7
@@
drawtext(XftDraw *draw, XftColor *color, int x, int y, unsigned h, const char *t
if (draw) {
int texty;
if (draw) {
int texty;
- texty = y + (h
+ currfont->ascent) / 2
;
+ texty = y + (h
- (currfont->ascent + currfont->descent))/2 + currfont->ascent
;
XftDrawStringUtf8(draw, color, currfont, x, texty,
(XftChar8 *)s, len);
x += ext.xOff;
XftDrawStringUtf8(draw, color, currfont, x, texty,
(XftChar8 *)s, len);
x += ext.xOff;