From 2a6b35f3ad33beee0feabf19017ecba8e01a2cdc Mon Sep 17 00:00:00 2001 From: aquanull Date: Wed, 5 Jun 2013 00:37:39 +0800 Subject: [PATCH] Fix missing Pause Screen BG if the game is exited once and then replayed. --- UI/GameInfoCache.cpp | 1 + UI/GameInfoCache.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/UI/GameInfoCache.cpp b/UI/GameInfoCache.cpp index 56a7a90e83..9114c40f19 100644 --- a/UI/GameInfoCache.cpp +++ b/UI/GameInfoCache.cpp @@ -286,6 +286,7 @@ void GameInfoCache::FlushBGs() { delete iter->second->pic1Texture; iter->second->pic1Texture = 0; } + iter->second->wantBG = false; } } diff --git a/UI/GameInfoCache.h b/UI/GameInfoCache.h index cf2745350a..6415a64238 100644 --- a/UI/GameInfoCache.h +++ b/UI/GameInfoCache.h @@ -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();