diff options
Diffstat (limited to 'drw.c')
| -rw-r--r-- | drw.c | 6 | 
1 files changed, 3 insertions, 3 deletions
| @@ -129,7 +129,7 @@ xfont_create(Drw *drw, const char *fontname, FcPattern *fontpattern) | |||
| 129 | return NULL; | 129 | return NULL; | 
| 130 | } | 130 | } | 
| 131 | } else { | 131 | } else { | 
| 132 | die("no font specified.\n"); | 132 | die("no font specified."); | 
| 133 | } | 133 | } | 
| 134 | 134 | ||
| 135 | font = ecalloc(1, sizeof(Fnt)); | 135 | font = ecalloc(1, sizeof(Fnt)); | 
| @@ -188,7 +188,7 @@ drw_clr_create(Drw *drw, Clr *dest, const char *clrname) | |||
| 188 | if (!XftColorAllocName(drw->dpy, DefaultVisual(drw->dpy, drw->screen), | 188 | if (!XftColorAllocName(drw->dpy, DefaultVisual(drw->dpy, drw->screen), | 
| 189 | DefaultColormap(drw->dpy, drw->screen), | 189 | DefaultColormap(drw->dpy, drw->screen), | 
| 190 | clrname, dest)) | 190 | clrname, dest)) | 
| 191 | die("error, cannot allocate color '%s'\n", clrname); | 191 | die("error, cannot allocate color '%s'", clrname); | 
| 192 | } | 192 | } | 
| 193 | 193 | ||
| 194 | /* Wrapper to create color schemes. The caller has to call free(3) on the | 194 | /* Wrapper to create color schemes. The caller has to call free(3) on the | 
| @@ -331,7 +331,7 @@ drw_text(Drw *drw, int x, int y, unsigned int w, unsigned int h, unsigned int lp | |||
| 331 | 331 | ||
| 332 | if (!drw->fonts->pattern) { | 332 | if (!drw->fonts->pattern) { | 
| 333 | /* Refer to the comment in xfont_create for more information. */ | 333 | /* Refer to the comment in xfont_create for more information. */ | 
| 334 | die("the first font in the cache must be loaded from a font string.\n"); | 334 | die("the first font in the cache must be loaded from a font string."); | 
| 335 | } | 335 | } | 
| 336 | 336 | ||
| 337 | fcpattern = FcPatternDuplicate(drw->fonts->pattern); | 337 | fcpattern = FcPatternDuplicate(drw->fonts->pattern); | 
