mirror of
https://github.com/brl/mutter.git
synced 2024-11-26 18:11:05 -05:00
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:
parent
1bfeddaaee
commit
543b6971b4
@ -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>
|
||||
|
||||
* clutter/eglnative/clutter-stage-egl.c
|
||||
|
@ -647,6 +647,8 @@ clutter_label_init (ClutterLabel *self)
|
||||
_context = pango_clutter_font_map_create_context (font_map);
|
||||
|
||||
resolution = clutter_backend_get_resolution (backend);
|
||||
if (resolution < 0)
|
||||
resolution = 96.0;
|
||||
pango_cairo_context_set_resolution (_context, resolution);
|
||||
|
||||
font_options = clutter_backend_get_font_options (backend);
|
||||
|
Loading…
Reference in New Issue
Block a user