summaryrefslogtreecommitdiff
path: root/src/index.c
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2011-09-25 09:57:37 +0200
committerDaniel Friesel <derf@finalrewind.org>2011-09-25 09:57:37 +0200
commitaee2ce6e1ed7395160a72477309618a2271e14d1 (patch)
tree60745fc9ac655600cedc7dec7617d7ffdb9baa30 /src/index.c
parente7dd9481ec845cc2034509bb0c187bd3d7a2f716 (diff)
index.c, thumbnail.c: Fix --title-font fallback to default (closes #65)
Diffstat (limited to 'src/index.c')
-rw-r--r--src/index.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/index.c b/src/index.c
index 4b4c77f..4a1a0f0 100644
--- a/src/index.c
+++ b/src/index.c
@@ -79,8 +79,9 @@ void init_index_mode(void)
int fh, fw;
title_fn = gib_imlib_load_font(opt.title_font);
- if (!fn)
+ if (!title_fn)
title_fn = gib_imlib_load_font(DEFAULT_FONT_TITLE);
+
gib_imlib_get_text_size(title_fn, "W", NULL, &fw, &fh, IMLIB_TEXT_TO_RIGHT);
title_area_h = fh + 4;
} else