diff --git a/mythtv/libs/libmythui/mythuitext.cpp b/mythtv/libs/libmythui/mythuitext.cpp index 14ea6ee2efb..919e94cdaf4 100644 --- a/mythtv/libs/libmythui/mythuitext.cpp +++ b/mythtv/libs/libmythui/mythuitext.cpp @@ -361,8 +361,8 @@ void MythUIText::DrawSelf(MythPainter *p, int xoffset, int yoffset, if (m_Ascent) { drawrect.setY(drawrect.y() - m_Ascent); - canvas.setY(canvas.y() + m_Ascent); - canvas.setHeight(canvas.height() + (m_Ascent * 2)); + canvas.moveTop(canvas.y() + m_Ascent); + canvas.setHeight(canvas.height() + m_Ascent); } if (m_Descent) { @@ -373,8 +373,8 @@ void MythUIText::DrawSelf(MythPainter *p, int xoffset, int yoffset, if (m_leftBearing) { drawrect.setX(drawrect.x() + m_leftBearing); - canvas.setX(canvas.x() - m_leftBearing); - canvas.setWidth(canvas.width() - (m_leftBearing * 2)); + canvas.moveLeft(canvas.x() - m_leftBearing); + canvas.setWidth(canvas.width() - m_leftBearing); } if (m_rightBearing) { @@ -412,10 +412,10 @@ void MythUIText::DrawSelf(MythPainter *p, int xoffset, int yoffset, /* Canvas pos is where the view port (drawrect) pulls from, so * it needs moved to the right for the left edge to be picked up*/ - canvas.setX(canvas.x() + outline.x()); - canvas.setWidth(canvas.width() + (outline.x() * 2)); - canvas.setY(canvas.y() + outline.y()); - canvas.setHeight(canvas.height() + (outline.y() * 2)); + canvas.moveLeft(canvas.x() + outline.x()); + canvas.setWidth(canvas.width() + outline.x()); + canvas.moveTop(canvas.y() + outline.y()); + canvas.setHeight(canvas.height() + outline.y()); } if (GetFontProperties()->hasShadow())