- 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
+4 -3
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,9 +481,8 @@ void GameStateMenu::Render()
splashTex = resources.RetrieveTexture("splash.jpg",RETRIEVE_LOCK);
mSplash = resources.RetrieveTempQuad("splash.jpg");
}
if (mSplash){
if (mSplash)
renderer->RenderQuad(mSplash,0,0);
}else{
char text[512];
mFont->SetColor(ARGB(255,255,255,255));
if (mCurrentSetName[0]) {
@@ -489,7 +491,6 @@ void GameStateMenu::Render()
sprintf(text,"LOADING...");
}
mFont->DrawString(text,SCREEN_WIDTH/2,SCREEN_HEIGHT/2,JGETEXT_CENTER);
}
}else{
mFont = resources.GetJLBFont(Constants::MAIN_FONT);
PIXEL_TYPE colors[] =