mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-23 13:30:02 +00:00
Draw default background when pic doesn't exist.
This commit is contained in:
parent
f5a63d7d41
commit
6aa887e76a
@ -703,6 +703,8 @@ void GamePauseScreen::key(const KeyInput &key) {
|
||||
}
|
||||
}
|
||||
|
||||
void DrawBackground(float alpha);
|
||||
|
||||
void GamePauseScreen::DrawBackground(UIContext &dc) {
|
||||
GameInfo *ginfo = g_gameInfoCache.GetInfo(gamePath_, true);
|
||||
dc.Flush();
|
||||
@ -721,6 +723,10 @@ void GamePauseScreen::DrawBackground(UIContext &dc) {
|
||||
dc.Draw()->DrawTexRect(0,0,dp_xres, dp_yres, 0,0,1,1,color);
|
||||
dc.Flush();
|
||||
dc.RebindTexture();
|
||||
} else {
|
||||
::DrawBackground(1.0f);
|
||||
dc.RebindTexture();
|
||||
dc.Flush();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user