From 4a539eb596202bfb7c8e7b42bdbed6c34792ef09 Mon Sep 17 00:00:00 2001 From: Jonathan Marshall Date: Fri, 8 Feb 2013 11:45:05 +1300 Subject: don't clip outline'd text as the outline will be clipped on the left otherwise --- xbmc/guilib/GUITextLayout.cpp | 7 +++++-- 1 file 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(); -- cgit v1.2.3