Add OSD message for Volume Hotkeys

This pr adds an OnScreenDisplay message when you use the Volume hotkeys.
Just to have visual feedback.
This commit is contained in:
master0fdisaster
2018-06-05 23:34:28 +02:00
parent 21898a0c5a
commit 7a90ea2752
4 changed files with 43 additions and 17 deletions

View File

@ -329,6 +329,9 @@ void Renderer::DrawDebugText()
ar_text = "Auto";
break;
}
const std::string audio_text = SConfig::GetInstance().m_IsMuted ?
"Muted" :
std::to_string(SConfig::GetInstance().m_Volume) + "%";
const char* const efbcopy_text = g_ActiveConfig.bSkipEFBCopyToRam ? "to Texture" : "to RAM";
const char* const xfbcopy_text = g_ActiveConfig.bSkipXFBCopyToRam ? "to Texture" : "to RAM";
@ -345,6 +348,7 @@ void Renderer::DrawDebugText()
std::lround(SConfig::GetInstance().m_EmulationSpeed * 100.f)),
std::string("Copy XFB: ") + xfbcopy_text +
(g_ActiveConfig.bImmediateXFB ? " (Immediate)" : ""),
"Volume: " + audio_text,
};
enum