summaryrefslogtreecommitdiff
path: root/fc-cache/fc-cache.c
diff options
context:
space:
mode:
authorPatrick Lam <plam@MIT.EDU>2005-09-01 06:14:46 +0000
committerPatrick Lam <plam@MIT.EDU>2005-09-01 06:14:46 +0000
commit2304e38f9bc070ccd54f80187c208d93b6eeb373 (patch)
treee22edbd5f2d2d5569d02989e94d9f1cfb94eb8b9 /fc-cache/fc-cache.c
parent5e678e9459f71878d72f72d3765f7dc7e8f3f643 (diff)
:
Save subdirectory names in cache files to save time. This completely restores the original fontconfig API, BTW. Note that directories without fonts don't get a cache file; but then how many files would it have in that directory...
Diffstat (limited to 'fc-cache/fc-cache.c')
-rw-r--r--fc-cache/fc-cache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fc-cache/fc-cache.c b/fc-cache/fc-cache.c
index fc0c4e51..fed64295 100644
--- a/fc-cache/fc-cache.c
+++ b/fc-cache/fc-cache.c
@@ -203,7 +203,7 @@ scanDirs (FcStrList *list, FcConfig *config, char *program, FcBool force, FcBool
printf ("caching, %d fonts, %d dirs\n",
set->nfont, nsubdirs (subdirs));
- if (!FcDirSave (set, dir))
+ if (!FcDirSave (set, subdirs, dir))
{
fprintf (stderr, "Can't save cache in \"%s\"\n", dir);
ret++;