summaryrefslogtreecommitdiff
path: root/pango/pangofc-font.c
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@behdad.org>2012-08-27 23:43:38 -0400
committerBehdad Esfahbod <behdad@behdad.org>2012-08-28 00:05:19 -0400
commit4105e20d799a80f9c0c2befdef8f458ee11654a6 (patch)
treee98bb1e985584a28267af6e892471c3617053665 /pango/pangofc-font.c
parent26bbf750ab0754c113722e87942174cf2953dad4 (diff)
downloadpango-4105e20d799a80f9c0c2befdef8f458ee11654a6.tar.gz
More churn
Diffstat (limited to 'pango/pangofc-font.c')
-rw-r--r--pango/pangofc-font.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/pango/pangofc-font.c b/pango/pangofc-font.c
index 66513057..f45298ab 100644
--- a/pango/pangofc-font.c
+++ b/pango/pangofc-font.c
@@ -300,14 +300,13 @@ pango_fc_font_describe_absolute (PangoFont *font)
static PangoMap *
pango_fc_get_shaper_map (PangoLanguage *language)
{
- static guint engine_type_id = 0;
- static guint render_type_id = 0;
+ static guint engine_type_id = 0; /* MT-safe */
+ static guint render_type_id = 0; /* MT-safe */
if (engine_type_id == 0)
- {
- engine_type_id = g_quark_from_static_string (PANGO_ENGINE_TYPE_SHAPE);
- render_type_id = g_quark_from_static_string (PANGO_RENDER_TYPE_FC);
- }
+ engine_type_id = g_quark_from_static_string (PANGO_ENGINE_TYPE_SHAPE);
+ if (render_type_id == 0)
+ render_type_id = g_quark_from_static_string (PANGO_RENDER_TYPE_FC);
return pango_find_map (language, engine_type_id, render_type_id);
}