diff options
author | Diego 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2007-04-13 22:03:30 +0200 |
---|---|---|
committer | Diego 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2007-04-13 22:03:30 +0200 |
commit | da34d0f512303cfa4551612e68c85d5e59e01037 (patch) | |
tree | 4a579bde3a73895f3719b3bf1ca33183d2e695c7 /src | |
parent | 79bec7f8b6b4ca74fc2c56b0caadc28e70212bee (diff) | |
download | xine-lib-da34d0f512303cfa4551612e68c85d5e59e01037.tar.gz xine-lib-da34d0f512303cfa4551612e68c85d5e59e01037.tar.bz2 |
Check inside the fonts/ directory inside the package's XDG_DATA_DIR, rather than in the root of it.
Diffstat (limited to 'src')
-rw-r--r-- | src/xine-engine/osd.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/xine-engine/osd.c b/src/xine-engine/osd.c index f179e0246..e44e7b7ba 100644 --- a/src/xine-engine/osd.c +++ b/src/xine-engine/osd.c @@ -898,7 +898,7 @@ static int osd_lookup_xdg( osd_object_t *osd, const char *const fontname ) { while( (*data_dirs) && *(*data_dirs) ) { FT_Error fte = FT_Err_Ok; char *fontpath = NULL; - asprintf(&fontpath, "%s/"PACKAGE"/%s", *data_dirs, fontname); + asprintf(&fontpath, "%s/"PACKAGE"/fonts/%s", *data_dirs, fontname); fte = FT_New_Face(osd->ft2->library, fontpath, 0, &osd->ft2->face); @@ -1641,10 +1641,10 @@ osd_renderer_t *_x_osd_renderer_init( xine_stream_t *stream ) { const char *const *data_dirs = xdgDataDirectories(stream->xine->basedir_handle); if ( data_dirs ) while( (*data_dirs) && *(*data_dirs) ) { - /* sizeof(PACKAGE) takes care of the final NUL byte */ - char *fontpath = xine_xmalloc( strlen(*data_dirs) + sizeof(PACKAGE) ); + /* sizeof("") takes care of the final NUL byte */ + char *fontpath = xine_xmalloc( strlen(*data_dirs) + sizeof("/"PACKAGE"/fonts/") ); strcpy(fontpath, *data_dirs); - strcat(fontpath, "/"PACKAGE"/"); + strcat(fontpath, "/"PACKAGE"/fonts/"); osd_preload_fonts(this, fontpath); |