diff options
author | Daniel Friesel <derf@derf.homelinux.org> | 2010-02-08 19:26:43 +0100 |
---|---|---|
committer | Daniel Friesel <derf@derf.homelinux.org> | 2010-02-08 19:26:43 +0100 |
commit | 1e03474b483e75147a60d0c3d52332d4f0901aab (patch) | |
tree | 9a095e30524f8cbe043378a42eadf004d067bb97 /src/imlib.c | |
parent | 63681d6aedac480b61ea71e8a99c3f41b0f60267 (diff) |
Make -O work without X as well. Closes bugs.debian.org #373209
Diffstat (limited to 'src/imlib.c')
-rw-r--r-- | src/imlib.c | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/src/imlib.c b/src/imlib.c index 3d829ce..1b2ae12 100644 --- a/src/imlib.c +++ b/src/imlib.c @@ -67,6 +67,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) { D_ENTER(4); @@ -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); } |