summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/RenderBase.cpp
diff options
context:
space:
mode:
authormaster0fdisaster <38867833+master0fdisaster@users.noreply.github.com>2018-06-05 23:34:28 +0200
committermaster0fdisaster <38867833+master0fdisaster@users.noreply.github.com>2018-06-06 17:11:43 +0200
commit7a90ea2752de2fe5c7ba62c0432ae25f4e5bce3b (patch)
tree83a7d036ebcf328b4930476f0fca2267ac269260 /Source/Core/VideoCommon/RenderBase.cpp
parent21898a0c5a2bf55d0d48fde10604435d7336b07e (diff)
Add OSD message for Volume Hotkeys
This pr adds an OnScreenDisplay message when you use the Volume hotkeys. Just to have visual feedback.
Diffstat (limited to 'Source/Core/VideoCommon/RenderBase.cpp')
-rw-r--r--Source/Core/VideoCommon/RenderBase.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/Core/VideoCommon/RenderBase.cpp b/Source/Core/VideoCommon/RenderBase.cpp
index 97ca4c1696..98addff6b2 100644
--- a/Source/Core/VideoCommon/RenderBase.cpp
+++ b/Source/Core/VideoCommon/RenderBase.cpp
@@ -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