Explorar o código

settings: Simplify initializer of resolution factor

This can use a braced initializer to accomplish the same thing with less
code.
Lioncash %!s(int64=5) %!d(string=hai) anos
pai
achega
c0ab5b79dc
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/core/settings.h

+ 1 - 1
src/core/settings.h

@@ -101,7 +101,7 @@ struct Values {
     bool renderer_debug;
     bool renderer_debug;
     Setting<int> vulkan_device;
     Setting<int> vulkan_device;
 
 
-    Setting<u16> resolution_factor = Setting(static_cast<u16>(1));
+    Setting<u16> resolution_factor{1};
     Setting<int> aspect_ratio;
     Setting<int> aspect_ratio;
     Setting<int> max_anisotropy;
     Setting<int> max_anisotropy;
     Setting<bool> use_frame_limit;
     Setting<bool> use_frame_limit;