summaryrefslogtreecommitdiff
path: root/libs/canvas/text.cc
diff options
context:
space:
mode:
Diffstat (limited to 'libs/canvas/text.cc')
-rw-r--r--libs/canvas/text.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/libs/canvas/text.cc b/libs/canvas/text.cc
index 4d240db3fd..9f3f98528b 100644
--- a/libs/canvas/text.cc
+++ b/libs/canvas/text.cc
@@ -61,8 +61,8 @@ Text::redraw (Cairo::RefPtr<Cairo::Context> context) const
_origin.x = ink_rect.get_x() / Pango::SCALE;
_origin.y = ink_rect.get_y() / Pango::SCALE;
- _width = _origin.x + ((ink_rect.get_width() + Pango::SCALE / 2) / Pango::SCALE);
- _height = _origin.y + ((ink_rect.get_height() + Pango::SCALE / 2) / Pango::SCALE);
+ _width = _origin.x + (ink_rect.get_width() / Pango::SCALE);
+ _height = _origin.y + (ink_rect.get_height() / Pango::SCALE);
_image = Cairo::ImageSurface::create (Cairo::FORMAT_ARGB32, _width, _height);
@@ -71,7 +71,6 @@ Text::redraw (Cairo::RefPtr<Cairo::Context> context) const
/* and draw, in the appropriate color of course */
set_source_rgba (img_context, _color);
-
layout->show_in_cairo_context (img_context);
/* text has now been rendered in _image and is ready for blit in