Updates, mostly about centering text.

This was SVN commit r1099.
This commit is contained in:
Gee
2004-09-02 03:02:32 +00:00
parent 72e730be3a
commit f2a615f0a3
16 changed files with 187 additions and 79 deletions
+2 -2
View File
@@ -69,7 +69,7 @@ void CGUIString::GenerateTextCall(SFeedback &Feedback,
// it's in the end of one word, and the icon
// should really belong to the beginning of the next one
if (_to == to)
if (_to == to && to >= 1)
{
if (GetRawString()[to-1] == ' ' ||
GetRawString()[to-1] == '-' ||
@@ -203,7 +203,7 @@ void CGUIString::GenerateTextCall(SFeedback &Feedback,
Feedback.m_Size.cx += size.cx;
Feedback.m_Size.cy = max(Feedback.m_Size.cy, size.cy);
// These are also needed later
// These are also ne eded later
TextCall.m_Size = size;
if (TextCall.m_String.Length() >= 1)