diff options
| author | 2021-07-20 18:29:52 +0200 | |
|---|---|---|
| committer | 2021-11-16 22:11:27 +0100 | |
| commit | 71ca84d8299f7eb6779e95e808b3ec7f8505354b (patch) | |
| tree | a837911a9e10aaf6ee4cc5204e929afb55dd1b1a /src/common | |
| parent | Texture Cache: More rescaling fixes. (diff) | |
| download | yuzu-71ca84d8299f7eb6779e95e808b3ec7f8505354b.tar.gz yuzu-71ca84d8299f7eb6779e95e808b3ec7f8505354b.tar.xz yuzu-71ca84d8299f7eb6779e95e808b3ec7f8505354b.zip | |
Settings: eliminate rescaling_factor.
Diffstat (limited to 'src/common')
| -rw-r--r-- | src/common/settings.cpp | 2 | ||||
| -rw-r--r-- | src/common/settings.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/common/settings.cpp b/src/common/settings.cpp index dd3a3d456..6f3acee79 100644 --- a/src/common/settings.cpp +++ b/src/common/settings.cpp | |||
| @@ -48,7 +48,6 @@ void LogSettings() { | |||
| 48 | log_setting("Core_UseMultiCore", values.use_multi_core.GetValue()); | 48 | log_setting("Core_UseMultiCore", values.use_multi_core.GetValue()); |
| 49 | log_setting("CPU_Accuracy", values.cpu_accuracy.GetValue()); | 49 | log_setting("CPU_Accuracy", values.cpu_accuracy.GetValue()); |
| 50 | log_setting("Renderer_UseResolutionScaling", values.resolution_setup.GetValue()); | 50 | log_setting("Renderer_UseResolutionScaling", values.resolution_setup.GetValue()); |
| 51 | log_setting("Renderer_UseResolutionFactor", values.resolution_factor.GetValue()); | ||
| 52 | log_setting("Renderer_UseSpeedLimit", values.use_speed_limit.GetValue()); | 51 | log_setting("Renderer_UseSpeedLimit", values.use_speed_limit.GetValue()); |
| 53 | log_setting("Renderer_SpeedLimit", values.speed_limit.GetValue()); | 52 | log_setting("Renderer_SpeedLimit", values.speed_limit.GetValue()); |
| 54 | log_setting("Renderer_UseDiskShaderCache", values.use_disk_shader_cache.GetValue()); | 53 | log_setting("Renderer_UseDiskShaderCache", values.use_disk_shader_cache.GetValue()); |
| @@ -155,6 +154,7 @@ void UpdateRescalingInfo() { | |||
| 155 | info.down_factor = static_cast<f32>(1U << info.down_shift) / info.up_scale; | 154 | info.down_factor = static_cast<f32>(1U << info.down_shift) / info.up_scale; |
| 156 | info.size_up = info.up_scale * info.up_scale; | 155 | info.size_up = info.up_scale * info.up_scale; |
| 157 | info.size_shift = info.down_shift * 2; | 156 | info.size_shift = info.down_shift * 2; |
| 157 | info.active = info.up_scale != 1 || info.down_shift != 0; | ||
| 158 | } | 158 | } |
| 159 | 159 | ||
| 160 | void RestoreGlobalState(bool is_powered_on) { | 160 | void RestoreGlobalState(bool is_powered_on) { |
diff --git a/src/common/settings.h b/src/common/settings.h index f4df2fc95..2b11984b4 100644 --- a/src/common/settings.h +++ b/src/common/settings.h | |||
| @@ -69,6 +69,7 @@ struct ResolutionScalingInfo { | |||
| 69 | f32 down_factor{1.0f}; | 69 | f32 down_factor{1.0f}; |
| 70 | u32 size_up{1}; | 70 | u32 size_up{1}; |
| 71 | u32 size_shift{0}; | 71 | u32 size_shift{0}; |
| 72 | bool active{}; | ||
| 72 | }; | 73 | }; |
| 73 | 74 | ||
| 74 | /** The BasicSetting class is a simple resource manager. It defines a label and default value | 75 | /** The BasicSetting class is a simple resource manager. It defines a label and default value |
| @@ -472,7 +473,6 @@ struct Values { | |||
| 472 | 473 | ||
| 473 | ResolutionScalingInfo resolution_info{}; | 474 | ResolutionScalingInfo resolution_info{}; |
| 474 | Setting<ResolutionSetup> resolution_setup{ResolutionSetup::Res1X, "resolution_setup"}; | 475 | Setting<ResolutionSetup> resolution_setup{ResolutionSetup::Res1X, "resolution_setup"}; |
| 475 | Setting<u16> resolution_factor{1, "resolution_factor"}; | ||
| 476 | // *nix platforms may have issues with the borderless windowed fullscreen mode. | 476 | // *nix platforms may have issues with the borderless windowed fullscreen mode. |
| 477 | // Default to exclusive fullscreen on these platforms for now. | 477 | // Default to exclusive fullscreen on these platforms for now. |
| 478 | RangedSetting<FullscreenMode> fullscreen_mode{ | 478 | RangedSetting<FullscreenMode> fullscreen_mode{ |