aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Marshall <jmarshall@never.you.mind>2013-02-08 11:45:05 +1300
committerS. Davilla <davilla@4pi.com>2013-02-19 11:43:43 -0500
commit4a539eb596202bfb7c8e7b42bdbed6c34792ef09 (patch)
tree5b6eeaf8f3f9be2902f2c40e9bdcb285029ab4c2
parent7b3b189055fe1db63a8d6cc191029e14e0e80300 (diff)
don't clip outline'd text as the outline will be clipped on the left otherwise
-rw-r--r--xbmc/guilib/GUITextLayout.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/xbmc/guilib/GUITextLayout.cpp b/xbmc/guilib/GUITextLayout.cpp
index bff22d4451..053ffdd2b4 100644
--- a/xbmc/guilib/GUITextLayout.cpp
+++ b/xbmc/guilib/GUITextLayout.cpp
@@ -181,7 +181,9 @@ void CGUITextLayout::RenderOutline(float x, float y, color_t color, color_t outl
align &= ~XBFONT_CENTER_X;
}
- m_borderFont->DrawText(bx, by, outlineColors, 0, string.m_text, align, maxWidth);
+ // don't pass maxWidth through to the renderer for the same reason above: it will cause clipping
+ // on the left.
+ m_borderFont->DrawText(bx, by, outlineColors, 0, string.m_text, align, 0);
by += m_borderFont->GetLineHeight();
}
m_borderFont->End();
@@ -199,7 +201,8 @@ void CGUITextLayout::RenderOutline(float x, float y, color_t color, color_t outl
if (align & XBFONT_JUSTIFIED && string.m_carriageReturn)
align &= ~XBFONT_JUSTIFIED;
- m_font->DrawText(x, y, m_colors, 0, string.m_text, align, maxWidth);
+ // don't pass maxWidth through to the renderer for the reason above.
+ m_font->DrawText(x, y, m_colors, 0, string.m_text, align, 0);
y += m_font->GetLineHeight();
}
m_font->End();