summaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2010-11-14 21:06:36 +0000
committerCarl Hetherington <carl@carlh.net>2010-11-14 21:06:36 +0000
commita4e61456480fdf975ea52ea69d7d9671730616b7 (patch)
tree8c4066ade73b1fb20f9555eb3f61058c87c3515b /libs
parent04d951784291c813711eb484b9a3571794454968 (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.cc2
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);