diff options
author | Carl Hetherington <carl@carlh.net> | 2010-11-14 21:06:36 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2010-11-14 21:06:36 +0000 |
commit | a4e61456480fdf975ea52ea69d7d9671730616b7 (patch) | |
tree | 8c4066ade73b1fb20f9555eb3f61058c87c3515b /libs | |
parent | 04d951784291c813711eb484b9a3571794454968 (diff) |
Don't try to do sub-pixel text placement as cairo doesn't support it. Fixes #3534.
git-svn-id: svn://localhost/ardour2/branches/3.0@8033 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs')
-rw-r--r-- | libs/gtkmm2ext/utils.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/gtkmm2ext/utils.cc b/libs/gtkmm2ext/utils.cc index 876a153bf8..cded38786e 100644 --- a/libs/gtkmm2ext/utils.cc +++ b/libs/gtkmm2ext/utils.cc @@ -188,7 +188,7 @@ Gtkmm2ext::pixbuf_from_string(const string& name, Pango::FontDescription* font, cairo_set_font_size (cr, font->get_size() / Pango::SCALE); cairo_text_extents (cr, name.c_str(), &te); - cairo_move_to (cr, 0.5, 0.5 - te.height / 2 - te.y_bearing + clip_height / 2); + cairo_move_to (cr, 0.5, int (0.5 - te.height / 2 - te.y_bearing + clip_height / 2)); cairo_show_text (cr, name.c_str()); convert_bgra_to_rgba(cairo_image_surface_get_data (surface), buf->get_pixels(), clip_width, clip_height); |