mirror of
https://github.com/wiidev/usbloadergx.git
synced 2024-11-22 11:19:17 +01:00
Fixed CreditWíndow, changed sdcard logo size
This commit is contained in:
parent
23715cdbd8
commit
4db969442c
Binary file not shown.
Before Width: | Height: | Size: 5.4 KiB After Width: | Height: | Size: 5.1 KiB |
@ -168,7 +168,8 @@ void GuiText::Draw()
|
|||||||
|
|
||||||
if(newSize != currentSize)
|
if(newSize != currentSize)
|
||||||
{
|
{
|
||||||
(font ? font : fontSystem)->changeSize(newSize);
|
fontSystem->changeSize(newSize);
|
||||||
|
//(font ? font : fontSystem)->changeSize(newSize);
|
||||||
currentSize = newSize;
|
currentSize = newSize;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -198,7 +199,8 @@ void GuiText::Draw()
|
|||||||
|
|
||||||
if(text[ch] == ' ' || ch == strlen-1)
|
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)
|
if(lastSpace >= 0)
|
||||||
{
|
{
|
||||||
@ -229,13 +231,15 @@ void GuiText::Draw()
|
|||||||
|
|
||||||
for(i=0; i < linenum; i++)
|
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];
|
delete tmptext[i];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
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();
|
this->UpdateEffects();
|
||||||
}
|
}
|
||||||
|
@ -1445,7 +1445,7 @@ ProgressWindow(const char *title, const char *msg)
|
|||||||
prTxt.SetPosition(0, 40);
|
prTxt.SetPosition(0, 40);
|
||||||
|
|
||||||
timeTxt.SetAlignment(ALIGN_CENTRE, ALIGN_BOTTOM);
|
timeTxt.SetAlignment(ALIGN_CENTRE, ALIGN_BOTTOM);
|
||||||
timeTxt.SetPosition(0,-30);
|
timeTxt.SetPosition(0,-50);
|
||||||
|
|
||||||
promptWindow.Append(&dialogBoxImg);
|
promptWindow.Append(&dialogBoxImg);
|
||||||
promptWindow.Append(&titleTxt);
|
promptWindow.Append(&titleTxt);
|
||||||
|
Loading…
Reference in New Issue
Block a user