psp fix 2
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
|
||||
const std::string kBackdropFile = "backdrop.jpg";
|
||||
const std::string kBackdropFrameFile = "backdropframe.png";
|
||||
const std::string kPspBackdropFile = "pspbackdrop.jpg";
|
||||
|
||||
GuiBackground::GuiBackground(GameObserver* observer)
|
||||
: GuiLayer(observer)
|
||||
@@ -28,14 +29,20 @@ void GuiBackground::Render()
|
||||
}
|
||||
if (!quad.get())
|
||||
{
|
||||
#if !defined (PSP)
|
||||
quad = WResourceManager::Instance()->RetrieveTempQuad(kBackdropFile);
|
||||
#else
|
||||
quad = WResourceManager::Instance()->RetrieveTempQuad(kPspBackdropFile);
|
||||
#endif
|
||||
}
|
||||
if (quad.get())
|
||||
{
|
||||
renderer->RenderQuad(quad.get(), 0, 0, 0, SCREEN_WIDTH_F / quad->mWidth, SCREEN_HEIGHT_F / quad->mHeight);
|
||||
}
|
||||
#if !defined (PSP)
|
||||
if (quadframe.get())
|
||||
{
|
||||
renderer->RenderQuad(quadframe.get(), 0, 0, 0, SCREEN_WIDTH_F / quadframe->mWidth, SCREEN_HEIGHT_F / quadframe->mHeight);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user