summaryrefslogtreecommitdiff
path: root/src/common/settings.h
diff options
context:
space:
mode:
authorGravatar Fernando Sahmkow2021-07-18 20:33:20 +0200
committerGravatar Fernando Sahmkow2021-11-16 22:11:27 +0100
commit37ef9c913028e234509bcf70bad049b0210e4592 (patch)
tree4502ff26068fcbef55b36679c7afdc546182bf36 /src/common/settings.h
parentVideoCore: Initial Setup for the Resolution Scaler. (diff)
downloadyuzu-37ef9c913028e234509bcf70bad049b0210e4592.tar.gz
yuzu-37ef9c913028e234509bcf70bad049b0210e4592.tar.xz
yuzu-37ef9c913028e234509bcf70bad049b0210e4592.zip
Settings: Add resolution scaling to settings.
Diffstat (limited to 'src/common/settings.h')
-rw-r--r--src/common/settings.h13
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 {
56 Res1_2X = 0, 56 Res1_2X = 0,
57 Res3_4X = 1, 57 Res3_4X = 1,
58 Res1X = 2, 58 Res1X = 2,
59 Res3_2K = 3, 59 Res3_2X = 3,
60 Res2X = 4, 60 Res2X = 4,
61 Res3X = 5, 61 Res3X = 5,
62 Res4X = 6,
62}; 63};
63 64
64struct ResolutionScalingInfo { 65struct ResolutionScalingInfo {
65 u32 up_scale{2}; 66 u32 up_scale{1};
66 u32 down_shift{0}; 67 u32 down_shift{0};
67 f32 up_factor{2.0f}; 68 f32 up_factor{1.0f};
68 f32 down_factor{0.5f}; 69 f32 down_factor{1.0f};
70 u32 size_up{1};
71 u32 size_shift{0};
69}; 72};
70 73
71/** The BasicSetting class is a simple resource manager. It defines a label and default value 74/** The BasicSetting class is a simple resource manager. It defines a label and default value
@@ -613,6 +616,8 @@ std::string GetTimeZoneString();
613 616
614void LogSettings(); 617void LogSettings();
615 618
619void UpdateRescalingInfo();
620
616// Restore the global state of all applicable settings in the Values struct 621// Restore the global state of all applicable settings in the Values struct
617void RestoreGlobalState(bool is_powered_on); 622void RestoreGlobalState(bool is_powered_on);
618 623