瀏覽代碼

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) {
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;


Loading…
取消
儲存