Commit 969acffd authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Freetype: small fix for non-Win32 systems

parent 10c867dd
...@@ -2200,13 +2200,12 @@ static void FontConfig_BuildCache( filter_t *p_filter ) ...@@ -2200,13 +2200,12 @@ static void FontConfig_BuildCache( filter_t *p_filter )
{ {
/* */ /* */
msg_Dbg( p_filter, "Building font databases."); msg_Dbg( p_filter, "Building font databases.");
mtime_t t1; mtime_t t1, t2;
t1 = mdate(); t1 = mdate();
#ifdef WIN32 #ifdef WIN32
dialog_progress_bar_t *p_dialog = NULL; dialog_progress_bar_t *p_dialog = NULL;
FcConfig *fcConfig = FcInitLoadConfig(); FcConfig *fcConfig = FcInitLoadConfig();
mtime_t t2;
p_dialog = dialog_ProgressCreate( p_filter, p_dialog = dialog_ProgressCreate( p_filter,
_("Building font cache"), _("Building font cache"),
...@@ -2217,9 +2216,6 @@ static void FontConfig_BuildCache( filter_t *p_filter ) ...@@ -2217,9 +2216,6 @@ static void FontConfig_BuildCache( filter_t *p_filter )
dialog_ProgressSet( p_dialog, NULL, 0.5 ); */ dialog_ProgressSet( p_dialog, NULL, 0.5 ); */
FcConfigBuildFonts( fcConfig ); FcConfigBuildFonts( fcConfig );
t2 = mdate();
msg_Dbg( p_filter, "Took %ld microseconds", (long)((t2 - t1)) );
if( p_dialog ) if( p_dialog )
{ {
// dialog_ProgressSet( p_dialog, NULL, 1.0 ); // dialog_ProgressSet( p_dialog, NULL, 1.0 );
...@@ -2227,6 +2223,8 @@ static void FontConfig_BuildCache( filter_t *p_filter ) ...@@ -2227,6 +2223,8 @@ static void FontConfig_BuildCache( filter_t *p_filter )
p_dialog = NULL; p_dialog = NULL;
} }
#endif #endif
t2 = mdate();
msg_Dbg( p_filter, "Took %ld microseconds", (long)((t2 - t1)) );
} }
/*** /***
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment