- splash screen issue fix
This commit is contained in:
wagic.the.homebrew@gmail.com
2009-12-26 06:41:58 +00:00
parent 5c3b3f1d03
commit 98b6f914df
2 changed files with 15 additions and 14 deletions

View File

@@ -112,6 +112,9 @@ void GameStateMenu::Create()
scroller = NEW TextScroller(Constants::MAIN_FONT, SCREEN_WIDTH/2 - 90 , SCREEN_HEIGHT-17,180);
scrollerSet = 0;
splashTex = NULL;
mSplash = NULL;
}
@@ -478,18 +481,16 @@ void GameStateMenu::Render()
splashTex = resources.RetrieveTexture("splash.jpg",RETRIEVE_LOCK);
mSplash = resources.RetrieveTempQuad("splash.jpg");
}
if (mSplash){
if (mSplash)
renderer->RenderQuad(mSplash,0,0);
char text[512];
mFont->SetColor(ARGB(255,255,255,255));
if (mCurrentSetName[0]) {
sprintf(text, _("LOADING SET: %s").c_str(), mCurrentSetName);
}else{
char text[512];
mFont->SetColor(ARGB(255,255,255,255));
if (mCurrentSetName[0]) {
sprintf(text, _("LOADING SET: %s").c_str(), mCurrentSetName);
}else{
sprintf(text,"LOADING...");
}
mFont->DrawString(text,SCREEN_WIDTH/2,SCREEN_HEIGHT/2,JGETEXT_CENTER);
sprintf(text,"LOADING...");
}
mFont->DrawString(text,SCREEN_WIDTH/2,SCREEN_HEIGHT/2,JGETEXT_CENTER);
}else{
mFont = resources.GetJLBFont(Constants::MAIN_FONT);
PIXEL_TYPE colors[] =

View File

@@ -150,11 +150,11 @@ void GameStateOptions::Render()
"",
"Music by Celestial Aeon Project, http://www.jamendo.com",
"",
"Deck Builders: Abrasax, AzureKnight, colarchon",
"Hehotfarv, Jeremy, Jog1118, JonyAS, Kaioshin",
"Lachaux, Link17, Muddobbers, Nakano, Niegen",
"Psyringe, r1c47, Superhiro, Szei, Thanatos02",
"Whismer, Wololo",
"Deck Builders: Abrasax, AzureKnight, colarchon",
"Hehotfarv, Jeremy, Jog1118, JonyAS, Kaioshin",
"Lachaux, Link17, Muddobbers, Nakano, Niegen",
"Psyringe, r1c47, Superhiro, Szei, Thanatos02",
"Whismer, Wololo",
"",
"Thanks also go to Dr.Watson, Orine, Raphael, Sakya, Tyranid",
"for their (sometimes indirect) help.",