소스 검색

underline match

master
Connor Lane Smith 14 년 전
부모
커밋
7f36736d11
1개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  1. +5
    -0
      dmenu.c

+ 5
- 0
dmenu.c 파일 보기

@@ -158,8 +158,13 @@ drawbar(void) {

void
drawitem(const char *s, unsigned long col[ColLast]) {
const char *p;
unsigned int w = textnw(&dc, text, strlen(text));

drawbox(&dc, col);
drawtext(&dc, s, col);
for(p = fstrstr(s, text); *text && (p = fstrstr(p, text)); p++)
drawline(&dc, textnw(&dc, s, p-s) + dc.h/2 - 1, dc.h-2, w, 1, col);
}

void


불러오는 중...
취소
저장