summaryrefslogtreecommitdiffstats
path: root/src/yuzu_cmd/config.cpp
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2019-03-09 07:59:23 +0100
committerReinUsesLisp <reinuseslisp@airmail.cc>2019-03-09 07:59:23 +0100
commit45ef421b6babf14c21eb8847b18e7c85c34430f1 (patch)
tree0b3212895bc77f1823ca8b0044c1062ca73f0436 /src/yuzu_cmd/config.cpp
parentyuzu_cmd/config: Silent implicit cast warning (diff)
downloadyuzu-45ef421b6babf14c21eb8847b18e7c85c34430f1.tar
yuzu-45ef421b6babf14c21eb8847b18e7c85c34430f1.tar.gz
yuzu-45ef421b6babf14c21eb8847b18e7c85c34430f1.tar.bz2
yuzu-45ef421b6babf14c21eb8847b18e7c85c34430f1.tar.lz
yuzu-45ef421b6babf14c21eb8847b18e7c85c34430f1.tar.xz
yuzu-45ef421b6babf14c21eb8847b18e7c85c34430f1.tar.zst
yuzu-45ef421b6babf14c21eb8847b18e7c85c34430f1.zip
Diffstat (limited to 'src/yuzu_cmd/config.cpp')
-rw-r--r--src/yuzu_cmd/config.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/yuzu_cmd/config.cpp b/src/yuzu_cmd/config.cpp
index 52a08abdb..32e78049c 100644
--- a/src/yuzu_cmd/config.cpp
+++ b/src/yuzu_cmd/config.cpp
@@ -346,7 +346,7 @@ void Config::ReadValues() {
// Renderer
Settings::values.resolution_factor =
- (float)sdl2_config->GetReal("Renderer", "resolution_factor", 1.0);
+ static_cast<float>(sdl2_config->GetReal("Renderer", "resolution_factor", 1.0));
Settings::values.use_frame_limit = sdl2_config->GetBoolean("Renderer", "use_frame_limit", true);
Settings::values.frame_limit =
static_cast<u16>(sdl2_config->GetInteger("Renderer", "frame_limit", 100));
@@ -357,9 +357,10 @@ void Config::ReadValues() {
Settings::values.use_asynchronous_gpu_emulation =
sdl2_config->GetBoolean("Renderer", "use_asynchronous_gpu_emulation", false);
- Settings::values.bg_red = (float)sdl2_config->GetReal("Renderer", "bg_red", 0.0);
- Settings::values.bg_green = (float)sdl2_config->GetReal("Renderer", "bg_green", 0.0);
- Settings::values.bg_blue = (float)sdl2_config->GetReal("Renderer", "bg_blue", 0.0);
+ Settings::values.bg_red = static_cast<float>(sdl2_config->GetReal("Renderer", "bg_red", 0.0));
+ Settings::values.bg_green =
+ static_cast<float>(sdl2_config->GetReal("Renderer", "bg_green", 0.0));
+ Settings::values.bg_blue = static_cast<float>(sdl2_config->GetReal("Renderer", "bg_blue", 0.0));
// Audio
Settings::values.sink_id = sdl2_config->Get("Audio", "output_engine", "auto");