add lyrics screen

This commit is contained in:
unknown
2008-08-15 20:31:36 +02:00
parent 8deaa0a9e3
commit ea3778da7c
11 changed files with 260 additions and 46 deletions

View File

@@ -22,7 +22,7 @@
void Scrollpad::Add(string str)
{
if (itsXPos > 0 && str[0] != ' ')
if (itsXPos > 0 && (str[0] != ' ' || str[0] != '\n'))
str = " " + str;
itsRawContent += str;
@@ -39,8 +39,13 @@ void Scrollpad::Add(string str)
int space_pos = 0;
bool collect = 0;
for (size_t i = 0; i <= s.length(); i++, itsXPos++)
for (size_t i = 0; i < s.length(); i++)
{
if (s[i] != '\t')
itsXPos++;
else
itsXPos += 8;
if (BBEnabled)
{
if (s[i] == '[')