diff options
| author | liamwhite <liamwhite@users.noreply.github.com> | 2023-08-22 11:30:25 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-08-22 11:30:25 -0400 |
| commit | 4c4ee1b088afe1aacf959ac486a1df91611462b4 (patch) | |
| tree | 318a5af7edcf8c38de2d1d8a857fa25ce82cb827 /src/common/settings.cpp | |
| parent | c67b2ffec058b5db77c19a5a3b80ae0f65cf708a (diff) | |
| parent | 251481a19c36a1a4f30c4c70813331ab0c69e176 (diff) | |
Merge pull request #11303 from lat9nq/screenshots-configurable
yuzu-qt: Add configuration for screenshot resolution
Diffstat (limited to 'src/common/settings.cpp')
| -rw-r--r-- | src/common/settings.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/common/settings.cpp b/src/common/settings.cpp index 15fd2e2227..16a58a7506 100644 --- a/src/common/settings.cpp +++ b/src/common/settings.cpp @@ -207,9 +207,7 @@ const char* TranslateCategory(Category category) { return "Miscellaneous"; } -void UpdateRescalingInfo() { - const auto setup = values.resolution_setup.GetValue(); - auto& info = values.resolution_info; +void TranslateResolutionInfo(ResolutionSetup setup, ResolutionScalingInfo& info) { info.downscale = false; switch (setup) { case ResolutionSetup::Res1_2X: @@ -269,6 +267,12 @@ void UpdateRescalingInfo() { info.active = info.up_scale != 1 || info.down_shift != 0; } +void UpdateRescalingInfo() { + const auto setup = values.resolution_setup.GetValue(); + auto& info = values.resolution_info; + TranslateResolutionInfo(setup, info); +} + void RestoreGlobalState(bool is_powered_on) { // If a game is running, DO NOT restore the global settings state if (is_powered_on) { |
