diff options
author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2021-07-18 20:33:20 +0200 |
---|---|---|
committer | Fernando Sahmkow <fsahmkow27@gmail.com> | 2021-11-16 22:11:27 +0100 |
commit | 37ef9c913028e234509bcf70bad049b0210e4592 (patch) | |
tree | 4502ff26068fcbef55b36679c7afdc546182bf36 /src/common/settings.h | |
parent | VideoCore: Initial Setup for the Resolution Scaler. (diff) | |
download | yuzu-37ef9c913028e234509bcf70bad049b0210e4592.tar yuzu-37ef9c913028e234509bcf70bad049b0210e4592.tar.gz yuzu-37ef9c913028e234509bcf70bad049b0210e4592.tar.bz2 yuzu-37ef9c913028e234509bcf70bad049b0210e4592.tar.lz yuzu-37ef9c913028e234509bcf70bad049b0210e4592.tar.xz yuzu-37ef9c913028e234509bcf70bad049b0210e4592.tar.zst yuzu-37ef9c913028e234509bcf70bad049b0210e4592.zip |
Diffstat (limited to '')
-rw-r--r-- | src/common/settings.h | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/src/common/settings.h b/src/common/settings.h index 08f3da055..f4df2fc95 100644 --- a/src/common/settings.h +++ b/src/common/settings.h @@ -56,16 +56,19 @@ enum class ResolutionSetup : u32 { Res1_2X = 0, Res3_4X = 1, Res1X = 2, - Res3_2K = 3, + Res3_2X = 3, Res2X = 4, Res3X = 5, + Res4X = 6, }; struct ResolutionScalingInfo { - u32 up_scale{2}; + u32 up_scale{1}; u32 down_shift{0}; - f32 up_factor{2.0f}; - f32 down_factor{0.5f}; + f32 up_factor{1.0f}; + f32 down_factor{1.0f}; + u32 size_up{1}; + u32 size_shift{0}; }; /** The BasicSetting class is a simple resource manager. It defines a label and default value @@ -613,6 +616,8 @@ std::string GetTimeZoneString(); void LogSettings(); +void UpdateRescalingInfo(); + // Restore the global state of all applicable settings in the Values struct void RestoreGlobalState(bool is_powered_on); |