]> Dogcows Code - chaz/openbox/blobdiff - render/font.c
only print that when debuggin focus
[chaz/openbox] / render / font.c
index 27496c1d6955192b5a30ad55cfb561a1a8705e1b..c1139d6e70468ee3dba6583a3a7d70f8bac3a397 100644 (file)
@@ -68,8 +68,10 @@ ObFont *font_open(char *fontstring)
 
 void font_close(ObFont *f)
 {
-    XftFontClose(ob_display, f->xftfont);
-    g_free(f);
+    if (f) {
+        XftFontClose(ob_display, f->xftfont);
+        g_free(f);
+    }
 }
 
 int font_measure_string(ObFont *f, char *str, int shadow, int offset)
@@ -109,7 +111,6 @@ void font_draw(XftDraw *d, TextureText *t, Rect *position)
     x += 3; /* XXX figure out X with justification */
 
     if (t->shadow) {
-
         if (t->tint >= 0) {
             c.color.red = 0;
             c.color.green = 0;
This page took 0.023413 seconds and 4 git commands to generate.