Merge pull request #2147 from aquanull/PauseMenuFix

Fix missing Pause Screen BG if the game is exited once and then replayed.
This commit is contained in:
Henrik Rydgård 2013-06-08 10:12:55 -07:00
commit ce2d3dd9f0
2 changed files with 2 additions and 1 deletions

View File

@ -286,6 +286,7 @@ void GameInfoCache::FlushBGs() {
delete iter->second->pic1Texture;
iter->second->pic1Texture = 0;
}
iter->second->wantBG = false;
}
}

View File

@ -33,7 +33,7 @@
class GameInfo {
public:
GameInfo() : fileType(FILETYPE_UNKNOWN), iconTexture(NULL), pic0Texture(NULL), pic1Texture(NULL) {}
GameInfo() : fileType(FILETYPE_UNKNOWN), iconTexture(NULL), pic0Texture(NULL), pic1Texture(NULL), wantBG(false) {}
bool DeleteGame(); // Better be sure what you're doing when calling this.
bool DeleteAllSaveData();