aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2020-11-05 22:07:07 -0500
committerLioncash <mathew1800@gmail.com>2020-11-05 22:07:10 -0500
commitc0ab5b79dc857981f45e9003d815435e3b6907a9 (patch)
tree8e5e74e3b7d6321ebbd12e1ae58c07b37711879c
parentd62d28522b7ac49dcf76b82337d0963152d04feb (diff)
settings: Simplify initializer of resolution factor
This can use a braced initializer to accomplish the same thing with less code.
-rw-r--r--src/core/settings.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/settings.h b/src/core/settings.h
index dcb1dbb319..28616a5749 100644
--- a/src/core/settings.h
+++ b/src/core/settings.h
@@ -101,7 +101,7 @@ struct Values {
bool renderer_debug;
Setting<int> vulkan_device;
- Setting<u16> resolution_factor = Setting(static_cast<u16>(1));
+ Setting<u16> resolution_factor{1};
Setting<int> aspect_ratio;
Setting<int> max_anisotropy;
Setting<bool> use_frame_limit;