2008-06-06 Emmanuele Bassi <ebassi@openedhand.com>

Bug #955 - ClutterLabel is missing fallback resolution handling

	* clutter/clutter-label.c (clutter_label_init): Handle
	clutter_backend_get_resolution() return value -1 similar to
	ClutterEntry (falling back to 96.0). (#955, Tommi Komulainen)
This commit is contained in:
Emmanuele Bassi 2008-06-06 14:44:49 +00:00
parent 1bfeddaaee
commit 543b6971b4
2 changed files with 10 additions and 0 deletions

View File

@ -1,3 +1,11 @@
2008-06-06 Emmanuele Bassi <ebassi@openedhand.com>
Bug #955 - ClutterLabel is missing fallback resolution handling
* clutter/clutter-label.c (clutter_label_init): Handle
clutter_backend_get_resolution() return value -1 similar to
ClutterEntry (falling back to 96.0). (#955, Tommi Komulainen)
2008-06-06 Neil Roberts <neil@o-hand.com> 2008-06-06 Neil Roberts <neil@o-hand.com>
* clutter/eglnative/clutter-stage-egl.c * clutter/eglnative/clutter-stage-egl.c

View File

@ -647,6 +647,8 @@ clutter_label_init (ClutterLabel *self)
_context = pango_clutter_font_map_create_context (font_map); _context = pango_clutter_font_map_create_context (font_map);
resolution = clutter_backend_get_resolution (backend); resolution = clutter_backend_get_resolution (backend);
if (resolution < 0)
resolution = 96.0;
pango_cairo_context_set_resolution (_context, resolution); pango_cairo_context_set_resolution (_context, resolution);
font_options = clutter_backend_get_font_options (backend); font_options = clutter_backend_get_font_options (backend);