Fixed CreditWíndow, changed sdcard logo size

This commit is contained in:
thedarkness1981 2009-05-05 01:35:41 +00:00
parent 23715cdbd8
commit 4db969442c
3 changed files with 9 additions and 5 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.4 KiB

After

Width:  |  Height:  |  Size: 5.1 KiB

View File

@ -168,7 +168,8 @@ void GuiText::Draw()
if(newSize != currentSize)
{
(font ? font : fontSystem)->changeSize(newSize);
fontSystem->changeSize(newSize);
//(font ? font : fontSystem)->changeSize(newSize);
currentSize = newSize;
}
@ -198,7 +199,8 @@ void GuiText::Draw()
if(text[ch] == ' ' || ch == strlen-1)
{
if((font ? font : fontSystem)->getWidth(tmptext[linenum]) >= maxWidth)
//if((font ? font : fontSystem)->getWidth(tmptext[linenum]) >= maxWidth)
if(fontSystem->getWidth(tmptext[linenum]) >= maxWidth)
{
if(lastSpace >= 0)
{
@ -229,13 +231,15 @@ void GuiText::Draw()
for(i=0; i < linenum; i++)
{
(font ? font : fontSystem)->drawText(this->GetLeft(), this->GetTop()+voffset+i*lineheight, tmptext[i], c, style);
//(font ? font : fontSystem)->drawText(this->GetLeft(), this->GetTop()+voffset+i*lineheight, tmptext[i], c, style);
fontSystem->drawText(this->GetLeft(), this->GetTop()+voffset+i*lineheight, tmptext[i], c, style);
delete tmptext[i];
}
}
else
{
(font ? font : fontSystem)->drawText(this->GetLeft(), this->GetTop()+voffset, text, c, style);
//(font ? font : fontSystem)->drawText(this->GetLeft(), this->GetTop()+voffset, text, c, style);
fontSystem->drawText(this->GetLeft(), this->GetTop()+voffset, text, c, style);
}
this->UpdateEffects();
}

View File

@ -1445,7 +1445,7 @@ ProgressWindow(const char *title, const char *msg)
prTxt.SetPosition(0, 40);
timeTxt.SetAlignment(ALIGN_CENTRE, ALIGN_BOTTOM);
timeTxt.SetPosition(0,-30);
timeTxt.SetPosition(0,-50);
promptWindow.Append(&dialogBoxImg);
promptWindow.Append(&titleTxt);