diff options
author | gotmor <gotmor@f2baff5b-bf2c-0410-a398-912abdc3d8b2> | 2007-06-14 11:14:06 +0000 |
---|---|---|
committer | gotmor <gotmor@f2baff5b-bf2c-0410-a398-912abdc3d8b2> | 2007-06-14 11:14:06 +0000 |
commit | f47026a6bb5cc758790957bce90e072269c81d24 (patch) | |
tree | 6c5a0961bc77bddb2d67f7cdd74a11eb6e57b0dc | |
parent | bdf54d91e050b68f8b72b74c3494ce6b3326a37b (diff) | |
download | dzen-f47026a6bb5cc758790957bce90e072269c81d24.tar.gz dzen-f47026a6bb5cc758790957bce90e072269c81d24.zip |
typos
git-svn-id: http://dzen.googlecode.com/svn/trunk@96 f2baff5b-bf2c-0410-a398-912abdc3d8b2
-rw-r--r-- | config.mk | 8 | ||||
-rw-r--r-- | draw.c | 10 |
2 files changed, 8 insertions, 10 deletions
@@ -14,13 +14,13 @@ INCS = -I. -I/usr/include -I${X11INC} # No Xinerama, comment the following two lines for Xinerama LIBS = -L/usr/lib -lc -L${X11LIB} -lX11 -CFLAGS = -Os ${INCS} -DVERSION=\"${VERSION}\" +#CFLAGS = -Os ${INCS} -DVERSION=\"${VERSION}\" # With Xinerama, uncomment the following two lines for Xinerama #LIBS = -L/usr/lib -lc -L${X11LIB} -lX11 -lXinerama #CFLAGS = -Os ${INCS} -DVERSION=\"${VERSION}\" -DDZEN_XINERAMA -LDFLAGS = ${LIBS} +#LDFLAGS = ${LIBS} # Solaris, uncomment for Solaris #CFLAGS = -fast ${INCS} -DVERSION=\"${VERSION}\" @@ -28,8 +28,8 @@ LDFLAGS = ${LIBS} #CFLAGS += -xtarget=ultra # Debugging -#CFLAGS = -g -Wall -O0 ${INCS} -DVERSION=\"${VERSION}\" -DPOSIX_SOURCE -#LDFLAGS = -g ${LIBS} +CFLAGS = -g -Wall -O0 ${INCS} -DVERSION=\"${VERSION}\" -DPOSIX_SOURCE +LDFLAGS = -g ${LIBS} # compiler and linker CC = cc @@ -102,19 +102,17 @@ drawtext(const char *text, int reverse, int line, int align) { if(line == -1) XmbDrawString(dzen.dpy, dzen.title_win.drawable, dzen.font.set, mgc, x, y, buf, len); - else { + else XmbDrawString(dzen.dpy, dzen.slave_win.drawable[line], dzen.font.set, mgc, x, y, buf, len); - } } else { gcv.font = dzen.font.xfont->fid; XChangeGC(dzen.dpy, mgc, GCForeground | GCFont, &gcv); - if(line != -1) { + if(line != -1) XDrawString(dzen.dpy, dzen.slave_win.drawable[line], mgc, x, y, buf, len); - } else XDrawString(dzen.dpy, dzen.title_win.drawable, mgc, x, y, buf, len); @@ -200,7 +198,7 @@ drawheader(char * text) { dzen.h = dzen.line_height; if(text) { - if(ctext = setlinecolor(text, &col)) { + if( (ctext = setlinecolor(text, &col)) ) { XSetForeground(dzen.dpy, dzen.gc, col); drawtext(ctext, 0, -1, dzen.title_win.alignment); XSetForeground(dzen.dpy, dzen.gc, dzen.norm[ColFG]); @@ -221,7 +219,7 @@ drawbody(char * text) { if(dzen.slave_win.tcnt == dzen.slave_win.tsize) free_buffer(); if(dzen.slave_win.tcnt < dzen.slave_win.tsize) { - if(ctext = setlinecolor(text, &col)) { + if( (ctext = setlinecolor(text, &col)) ) { dzen.slave_win.tbuf[dzen.slave_win.tcnt].fg = col; dzen.slave_win.tbuf[dzen.slave_win.tcnt].text = estrdup(ctext); } else { |