From 1e03474b483e75147a60d0c3d52332d4f0901aab Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Mon, 8 Feb 2010 19:26:43 +0100 Subject: Make -O work without X as well. Closes bugs.debian.org #373209 --- src/imlib.c | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) (limited to 'src/imlib.c') diff --git a/src/imlib.c b/src/imlib.c index 3d829ce..1b2ae12 100644 --- a/src/imlib.c +++ b/src/imlib.c @@ -66,6 +66,19 @@ init_xinerama(void) } #endif /* HAVE_LIBXINERAMA */ +void +init_imlib_fonts(void) +{ + D_ENTER(4); + + /* Set up the font stuff */ + imlib_add_path_to_font_path("."); + imlib_add_path_to_font_path(PREFIX "/share/feh/fonts"); + imlib_add_path_to_font_path("./ttfonts"); + + D_RETURN_(4); +} + void init_x_and_imlib(void) { @@ -96,11 +109,6 @@ init_x_and_imlib(void) /* Initialise random numbers */ srand(getpid() * time(NULL) % ((unsigned int) -1)); - /* Set up the font stuff */ - imlib_add_path_to_font_path("."); - imlib_add_path_to_font_path(PREFIX "/share/feh/fonts"); - imlib_add_path_to_font_path("./ttfonts"); - D_RETURN_(4); } -- cgit v1.2.3