From 11870040998e0c7e0a30da11a1b91e0c54631c5b Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Mon, 5 Jan 2009 16:48:46 +0000 Subject: [PATCH] Clean up the update_pango_context() function Logically split the various operations with whitespace so that it's clear what does what. --- clutter/clutter-main.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/clutter/clutter-main.c b/clutter/clutter-main.c index 6dc8cbb94..2bd6a7dee 100644 --- a/clutter/clutter-main.c +++ b/clutter/clutter-main.c @@ -432,6 +432,10 @@ update_pango_context (ClutterBackend *backend, const gchar *font_name; gdouble resolution; + /* update the text direction */ + pango_context_set_base_dir (context, clutter_text_direction); + + /* get the configuration for the PangoContext from the backend */ font_name = clutter_backend_get_font_name (backend); font_options = clutter_backend_get_font_options (backend); resolution = clutter_backend_get_resolution (backend); @@ -442,7 +446,6 @@ update_pango_context (ClutterBackend *backend, resolution = 96.0; /* fall back */ pango_context_set_font_description (context, font_desc); - pango_context_set_base_dir (context, clutter_text_direction); pango_cairo_context_set_font_options (context, font_options); pango_cairo_context_set_resolution (context, resolution);