Erwan
- splash screen issue fix
This commit is contained in:
@@ -112,6 +112,9 @@ void GameStateMenu::Create()
|
|||||||
scroller = NEW TextScroller(Constants::MAIN_FONT, SCREEN_WIDTH/2 - 90 , SCREEN_HEIGHT-17,180);
|
scroller = NEW TextScroller(Constants::MAIN_FONT, SCREEN_WIDTH/2 - 90 , SCREEN_HEIGHT-17,180);
|
||||||
scrollerSet = 0;
|
scrollerSet = 0;
|
||||||
|
|
||||||
|
splashTex = NULL;
|
||||||
|
mSplash = NULL;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -478,9 +481,8 @@ void GameStateMenu::Render()
|
|||||||
splashTex = resources.RetrieveTexture("splash.jpg",RETRIEVE_LOCK);
|
splashTex = resources.RetrieveTexture("splash.jpg",RETRIEVE_LOCK);
|
||||||
mSplash = resources.RetrieveTempQuad("splash.jpg");
|
mSplash = resources.RetrieveTempQuad("splash.jpg");
|
||||||
}
|
}
|
||||||
if (mSplash){
|
if (mSplash)
|
||||||
renderer->RenderQuad(mSplash,0,0);
|
renderer->RenderQuad(mSplash,0,0);
|
||||||
}else{
|
|
||||||
char text[512];
|
char text[512];
|
||||||
mFont->SetColor(ARGB(255,255,255,255));
|
mFont->SetColor(ARGB(255,255,255,255));
|
||||||
if (mCurrentSetName[0]) {
|
if (mCurrentSetName[0]) {
|
||||||
@@ -489,7 +491,6 @@ void GameStateMenu::Render()
|
|||||||
sprintf(text,"LOADING...");
|
sprintf(text,"LOADING...");
|
||||||
}
|
}
|
||||||
mFont->DrawString(text,SCREEN_WIDTH/2,SCREEN_HEIGHT/2,JGETEXT_CENTER);
|
mFont->DrawString(text,SCREEN_WIDTH/2,SCREEN_HEIGHT/2,JGETEXT_CENTER);
|
||||||
}
|
|
||||||
}else{
|
}else{
|
||||||
mFont = resources.GetJLBFont(Constants::MAIN_FONT);
|
mFont = resources.GetJLBFont(Constants::MAIN_FONT);
|
||||||
PIXEL_TYPE colors[] =
|
PIXEL_TYPE colors[] =
|
||||||
|
|||||||
Reference in New Issue
Block a user