瀏覽代碼

removed the i = textnw... as remarked by Martin Hurton

master
Anselm R Garbe 16 年之前
父節點
當前提交
b95e61c9b7
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      dmenu.c

+ 1
- 1
dmenu.c 查看文件

@@ -226,7 +226,7 @@ drawtext(const char *text, unsigned long col[ColLast]) {
y = dc.y + (dc.h / 2) - (h / 2) + dc.font.ascent;
x = dc.x + (h / 2);
/* shorten text if necessary */
for(len = MIN(olen, sizeof buf); len && (i = textnw(buf, len)) > dc.w - h; len--);
for(len = MIN(olen, sizeof buf); len && textnw(buf, len) > dc.w - h; len--);
if(!len)
return;
memcpy(buf, text, len);


Loading…
取消
儲存