summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
Diffstat (limited to 'src/common')
-rw-r--r--src/common/settings.cpp10
-rw-r--r--src/common/settings.h17
2 files changed, 12 insertions, 15 deletions
diff --git a/src/common/settings.cpp b/src/common/settings.cpp
index 4b7fa4b82..f0686a7c5 100644
--- a/src/common/settings.cpp
+++ b/src/common/settings.cpp
@@ -48,6 +48,7 @@ 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_ScalingFilter", values.scaling_filter.GetValue());
51 log_setting("Renderer_UseSpeedLimit", values.use_speed_limit.GetValue()); 52 log_setting("Renderer_UseSpeedLimit", values.use_speed_limit.GetValue());
52 log_setting("Renderer_SpeedLimit", values.speed_limit.GetValue()); 53 log_setting("Renderer_SpeedLimit", values.speed_limit.GetValue());
53 log_setting("Renderer_UseDiskShaderCache", values.use_disk_shader_cache.GetValue()); 54 log_setting("Renderer_UseDiskShaderCache", values.use_disk_shader_cache.GetValue());
@@ -113,19 +114,10 @@ void UpdateRescalingInfo() {
113 info.up_scale = 1; 114 info.up_scale = 1;
114 info.down_shift = 1; 115 info.down_shift = 1;
115 break; 116 break;
116 case ResolutionSetup::Res3_4X:
117 info.up_scale = 3;
118 info.down_shift = 2;
119 break;
120 case ResolutionSetup::Res1X: 117 case ResolutionSetup::Res1X:
121 info.up_scale = 1; 118 info.up_scale = 1;
122 info.down_shift = 0; 119 info.down_shift = 0;
123 break; 120 break;
124 case ResolutionSetup::Res3_2X: {
125 info.up_scale = 3;
126 info.down_shift = 1;
127 break;
128 }
129 case ResolutionSetup::Res2X: 121 case ResolutionSetup::Res2X:
130 info.up_scale = 2; 122 info.up_scale = 2;
131 info.down_shift = 0; 123 info.down_shift = 0;
diff --git a/src/common/settings.h b/src/common/settings.h
index ca88c086b..f629c7c56 100644
--- a/src/common/settings.h
+++ b/src/common/settings.h
@@ -54,12 +54,16 @@ enum class NvdecEmulation : u32 {
54 54
55enum class ResolutionSetup : u32 { 55enum class ResolutionSetup : u32 {
56 Res1_2X = 0, 56 Res1_2X = 0,
57 Res3_4X = 1, 57 Res1X = 1,
58 Res1X = 2, 58 Res2X = 2,
59 Res3_2X = 3, 59 Res3X = 3,
60 Res2X = 4, 60 Res4X = 4,
61 Res3X = 5, 61};
62 Res4X = 6, 62
63enum class ScalingFilter : u32 {
64 Bilinear = 0,
65 Bicubic = 1,
66 ScaleForce = 2,
63}; 67};
64 68
65struct ResolutionScalingInfo { 69struct ResolutionScalingInfo {
@@ -471,6 +475,7 @@ struct Values {
471 475
472 ResolutionScalingInfo resolution_info{}; 476 ResolutionScalingInfo resolution_info{};
473 Setting<ResolutionSetup> resolution_setup{ResolutionSetup::Res1X, "resolution_setup"}; 477 Setting<ResolutionSetup> resolution_setup{ResolutionSetup::Res1X, "resolution_setup"};
478 Setting<ScalingFilter> scaling_filter{ScalingFilter::Bilinear, "scaling_filter"};
474 // *nix platforms may have issues with the borderless windowed fullscreen mode. 479 // *nix platforms may have issues with the borderless windowed fullscreen mode.
475 // Default to exclusive fullscreen on these platforms for now. 480 // Default to exclusive fullscreen on these platforms for now.
476 RangedSetting<FullscreenMode> fullscreen_mode{ 481 RangedSetting<FullscreenMode> fullscreen_mode{