Skip to content

Commit

Permalink
Possibly fix background bug
Browse files Browse the repository at this point in the history
  • Loading branch information
khang06 committed Dec 21, 2022
1 parent fbe874a commit 7991bcf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PianoFromAbove/GameState.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1657,7 +1657,7 @@ GameState::GameError MainScreen::Render()
// Update background if it changed
static Config& config = Config::GetConfig();
static const VizSettings& cViz = config.GetVizSettings();
if (cViz.sBackground != m_sCurBackground) {
if (cViz.sBackground != m_sCurBackground || cViz.sBackground.empty()) {
m_bBackgroundLoaded = cViz.sBackground.empty() ? false : m_pRenderer->LoadBackgroundBitmap(cViz.sBackground);
m_sCurBackground = cViz.sBackground;
}
Expand Down

0 comments on commit 7991bcf

Please sign in to comment.