浏览代码

changing the computation of the text y position

master
phillbush 4 年前
父节点
当前提交
64240f40ee
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      xmenu.c

+ 1
- 1
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;


||||||
x
 
000:0
正在加载...
取消
保存