diff --git a/source/fonts/clock.ttf b/source/fonts/clock.ttf index d3c73b1d..c7215cc6 100644 Binary files a/source/fonts/clock.ttf and b/source/fonts/clock.ttf differ diff --git a/source/libwiigui/gui_text.cpp b/source/libwiigui/gui_text.cpp index fd9314b2..4a934d83 100644 --- a/source/libwiigui/gui_text.cpp +++ b/source/libwiigui/gui_text.cpp @@ -29,7 +29,7 @@ GuiText::GuiText(const char * t, int s, GXColor c) alpha = c.a; style = FTGX_JUSTIFY_CENTER | FTGX_ALIGN_MIDDLE; maxWidth = 0; - font = 0; + font = NULL; alignmentHor = ALIGN_CENTRE; alignmentVert = ALIGN_MIDDLE; @@ -49,6 +49,7 @@ GuiText::GuiText(const char * t) alpha = presetColor.a; style = presetStyle; maxWidth = presetMaxWidth; + font = NULL; alignmentHor = presetAlignmentHor; alignmentVert = presetAlignmentVert; @@ -168,8 +169,8 @@ void GuiText::Draw() if(newSize != currentSize) { - fontSystem->changeSize(newSize); - //(font ? font : fontSystem)->changeSize(newSize); + //fontSystem->changeSize(newSize); + (font ? font : fontSystem)->changeSize(newSize); currentSize = newSize; } @@ -199,8 +200,8 @@ void GuiText::Draw() if(text[ch] == ' ' || ch == strlen-1) { - //if((font ? font : fontSystem)->getWidth(tmptext[linenum]) >= maxWidth) - if(fontSystem->getWidth(tmptext[linenum]) >= maxWidth) + if((font ? font : fontSystem)->getWidth(tmptext[linenum]) >= maxWidth) + //if(fontSystem->getWidth(tmptext[linenum]) >= maxWidth) { if(lastSpace >= 0) { @@ -231,15 +232,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); - 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); - 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(); } diff --git a/source/menu.cpp b/source/menu.cpp index 551be485..12918fbc 100644 --- a/source/menu.cpp +++ b/source/menu.cpp @@ -1411,8 +1411,10 @@ ShowProgress (s32 done, s32 total) sprintf(prozent, "%0.2f%%", percent); prTxt.SetText(prozent); + prTxt.SetFont(fontClock); sprintf(timet,"Time left: %d:%02d:%02d",h,m,s); timeTxt.SetText(timet); +// timeTxt.SetFont(fontClock); progressbarImg.SetTile(100*progressDone/progressTotal); } @@ -1607,10 +1609,11 @@ ProgressDownloadWindow(int choice2) - sprintf(prozent, "%i%%", 100*i/cntMissFiles); - prTxt.SetText(prozent); - progressbarImg.SetTile(100*i/cntMissFiles); - + sprintf(prozent, "%i%%", 100*i/cntMissFiles); + prTxt.SetText(prozent); + prTxt.SetFont(fontClock); + progressbarImg.SetTile(100*i/cntMissFiles); + sprintf(msg, "%i file(s) left", cntMissFiles - i); msgTxt.SetText(msg); sprintf(msg2, "%s", missingFiles[i]);