aboutsummaryrefslogtreecommitdiff
path: root/src/citra/config.cpp
diff options
context:
space:
mode:
authorarchshift <gh@archshift.com>2015-04-03 15:35:51 -0700
committerarchshift <gh@archshift.com>2015-04-03 15:35:51 -0700
commitcae89fb315afb4dfd83d9e33298505a58ecb7a08 (patch)
treee43cb6ae2f690b81e825f0b7dcc9fc7f1433fbc3 /src/citra/config.cpp
parente25ffaba86c5b5a79256faf80c39f7e37343701d (diff)
Allow the user to set the background clear color during emulation
The background color can be seen at the sides of the bottom screen or when the window is wider than normal.
Diffstat (limited to 'src/citra/config.cpp')
-rw-r--r--src/citra/config.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/citra/config.cpp b/src/citra/config.cpp
index e9f3dfd5bf..43175d6cbe 100644
--- a/src/citra/config.cpp
+++ b/src/citra/config.cpp
@@ -66,6 +66,11 @@ void Config::ReadValues() {
Settings::values.gpu_refresh_rate = glfw_config->GetInteger("Core", "gpu_refresh_rate", 30);
Settings::values.frame_skip = glfw_config->GetInteger("Core", "frame_skip", 0);
+ // Renderer
+ Settings::values.bg_red = (float)glfw_config->GetReal("Renderer", "bg_red", 1.0);
+ Settings::values.bg_green = (float)glfw_config->GetReal("Renderer", "bg_green", 1.0);
+ Settings::values.bg_blue = (float)glfw_config->GetReal("Renderer", "bg_blue", 1.0);
+
// Data Storage
Settings::values.use_virtual_sd = glfw_config->GetBoolean("Data Storage", "use_virtual_sd", true);