psp fix 2

This commit is contained in:
Anthony Calosa
2016-07-21 06:34:14 +08:00
parent 7c7c8c4f34
commit 0f81e82206
4 changed files with 21 additions and 2 deletions

View File

@@ -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
}