Erwan - reverting r2779 per my comment in that revision

This commit is contained in:
wagic.the.homebrew@gmail.com
2010-12-08 14:18:41 +00:00
parent 2a442ad2f5
commit 70a1a03fee
3 changed files with 3 additions and 3 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 56 KiB

View File

@@ -102,7 +102,7 @@ JGuiController(id, listener), fontId(fontId), mShowDetailsScreen( showDetailsOve
void DeckMenu::RenderBackground()
{
ostringstream bgFilename;
bgFilename << backgroundName << ".jpg";
bgFilename << backgroundName << ".png";
static bool loadBackground = true;
if (loadBackground)
@@ -178,8 +178,6 @@ void DeckMenu::Render()
}
if (timeOpen < 1) height *= timeOpen > 0 ? timeOpen : -timeOpen;
RenderBackground();
for (int i = startId; i < startId + maxItems; i++)
{
if (i > mCount - 1) break;
@@ -200,6 +198,7 @@ void DeckMenu::Render()
float stringWidth = mainFont->GetStringWidth(detailedInfoString.c_str());
float boxStartX = detailedInfoBoxX - stringWidth / 2;
DWORD currentColor = mainFont->GetColor();
renderer->FillRoundRect( boxStartX, detailedInfoBoxY - 5, stringWidth, mainFont->GetHeight() + 15, .5, ARGB( 255, 0, 0, 0) );
renderer->RenderQuad(pspIcons[5], detailedInfoBoxX, detailedInfoBoxY + 2, 0, pspIconsSize, pspIconsSize);
mainFont->SetColor(currentColor);
mainFont->DrawString(detailedInfoString, boxStartX, detailedInfoBoxY + 10);
@@ -241,6 +240,7 @@ void DeckMenu::Render()
}
mScroller->Render();
RenderBackground();
renderer->SetTexBlend(BLEND_SRC_ALPHA, BLEND_ONE);
stars->Render();