mirror of
https://github.com/brl/mutter.git
synced 2025-01-23 18:09:10 +00:00
Create the pango context in clutter_set_font_flags
if it wasn't already. Allows honoring CLUTTER_FONT_MIPMAPPING. http://bugzilla.openedhand.com/show_bug.cgi?id=2161 Signed-off-by: Emmanuele Bassi <ebassi@linux.intel.com>
This commit is contained in:
parent
30296a3307
commit
5929468599
@ -2889,10 +2889,12 @@ clutter_set_font_flags (ClutterFontFlags flags)
|
||||
|
||||
backend = clutter_get_default_backend ();
|
||||
|
||||
if (CLUTTER_CONTEXT ()->font_map)
|
||||
cogl_pango_font_map_set_use_mipmapping (CLUTTER_CONTEXT ()->font_map,
|
||||
(flags
|
||||
& CLUTTER_FONT_MIPMAPPING) != 0);
|
||||
if (CLUTTER_CONTEXT ()->font_map == NULL)
|
||||
_clutter_context_create_pango_context (CLUTTER_CONTEXT ());
|
||||
|
||||
cogl_pango_font_map_set_use_mipmapping (CLUTTER_CONTEXT ()->font_map,
|
||||
(flags
|
||||
& CLUTTER_FONT_MIPMAPPING) != 0);
|
||||
|
||||
old_flags = clutter_get_font_flags ();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user