summaryrefslogtreecommitdiffstats
path: root/src/common/settings.h
diff options
context:
space:
mode:
authorFernando Sahmkow <fsahmkow27@gmail.com>2021-08-17 00:12:52 +0200
committerFernando Sahmkow <fsahmkow27@gmail.com>2021-11-16 22:11:29 +0100
commita6b88e85bfb14c45345f6443b54d15a61e3975d5 (patch)
treee5908c9c61f3da27fc5f0c5e20d2a8e9809594f9 /src/common/settings.h
parentTexture Cache: fix scaling on upload and stop scaling on base resolution. (diff)
downloadyuzu-a6b88e85bfb14c45345f6443b54d15a61e3975d5.tar
yuzu-a6b88e85bfb14c45345f6443b54d15a61e3975d5.tar.gz
yuzu-a6b88e85bfb14c45345f6443b54d15a61e3975d5.tar.bz2
yuzu-a6b88e85bfb14c45345f6443b54d15a61e3975d5.tar.lz
yuzu-a6b88e85bfb14c45345f6443b54d15a61e3975d5.tar.xz
yuzu-a6b88e85bfb14c45345f6443b54d15a61e3975d5.tar.zst
yuzu-a6b88e85bfb14c45345f6443b54d15a61e3975d5.zip
Diffstat (limited to 'src/common/settings.h')
-rw-r--r--src/common/settings.h17
1 files changed, 11 insertions, 6 deletions
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 {
enum class ResolutionSetup : u32 {
Res1_2X = 0,
- Res3_4X = 1,
- Res1X = 2,
- Res3_2X = 3,
- Res2X = 4,
- Res3X = 5,
- Res4X = 6,
+ Res1X = 1,
+ Res2X = 2,
+ Res3X = 3,
+ Res4X = 4,
+};
+
+enum class ScalingFilter : u32 {
+ Bilinear = 0,
+ Bicubic = 1,
+ ScaleForce = 2,
};
struct ResolutionScalingInfo {
@@ -471,6 +475,7 @@ struct Values {
ResolutionScalingInfo resolution_info{};
Setting<ResolutionSetup> resolution_setup{ResolutionSetup::Res1X, "resolution_setup"};
+ Setting<ScalingFilter> scaling_filter{ScalingFilter::Bilinear, "scaling_filter"};
// *nix platforms may have issues with the borderless windowed fullscreen mode.
// Default to exclusive fullscreen on these platforms for now.
RangedSetting<FullscreenMode> fullscreen_mode{