Add an environment variable to disable mipmapped text

Mipmapped text is enabled by default in Clutter but it can cause
problems on some drivers so it is convenient to have an environment
variable to disable it for all apps.
This commit is contained in:
Neil Roberts 2009-02-23 11:36:03 +00:00
parent 8d04fbb05e
commit a4c8e78477

View File

@ -1202,7 +1202,8 @@ clutter_init_real (GError **error)
resolution = clutter_backend_get_resolution (ctx->backend); resolution = clutter_backend_get_resolution (ctx->backend);
cogl_pango_font_map_set_resolution (ctx->font_map, resolution); cogl_pango_font_map_set_resolution (ctx->font_map, resolution);
cogl_pango_font_map_set_use_mipmapping (ctx->font_map, TRUE); if (g_getenv ("CLUTTER_DISABLE_MIPMAPPED_TEXT") == NULL)
cogl_pango_font_map_set_use_mipmapping (ctx->font_map, TRUE);
clutter_text_direction = clutter_get_text_direction (); clutter_text_direction = clutter_get_text_direction ();