[hackers] [dmenu] applied yiyus initfont fix

From: <arg_AT_suckless.org>
Date: Wed Sep 19 17:36:16 2007

changeset: 218:709df5a4bad7
tag: tip
user: arg_AT_suckless.org
date: Wed Sep 19 17:33:35 2007 +0200
summary: applied yiyus initfont fix

diff -r 8e59aedc4e49 -r 709df5a4bad7 dmenu.c
--- a/dmenu.c Mon Sep 17 20:53:14 2007 +0200
+++ b/dmenu.c Wed Sep 19 17:33:35 2007 +0200
@@ -298,10 +298,9 @@ initfont(const char *fontstr) {
                 if(dc.font.xfont)
                         XFreeFont(dpy, dc.font.xfont);
                 dc.font.xfont = NULL;
- if(!(dc.font.xfont = XLoadQueryFont(dpy, fontstr))) {
- if(!(dc.font.xfont = XLoadQueryFont(dpy, "fixed")))
- eprint("error, cannot load font: '%s'\n", fontstr);
- }
+ if(!(dc.font.xfont = XLoadQueryFont(dpy, fontstr))
+ && !(dc.font.xfont = XLoadQueryFont(dpy, "fixed")))
+ eprint("error, cannot load font: '%s'\n", fontstr);
                 dc.font.ascent = dc.font.xfont->ascent;
                 dc.font.descent = dc.font.xfont->descent;
         }
Received on Wed Sep 19 2007 - 17:36:16 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 15:58:12 UTC