diff options
| author | 2021-07-20 18:29:52 +0200 | |
|---|---|---|
| committer | 2021-11-16 22:11:27 +0100 | |
| commit | 71ca84d8299f7eb6779e95e808b3ec7f8505354b (patch) | |
| tree | a837911a9e10aaf6ee4cc5204e929afb55dd1b1a /src/video_core | |
| parent | Texture Cache: More rescaling fixes. (diff) | |
| download | yuzu-71ca84d8299f7eb6779e95e808b3ec7f8505354b.tar.gz yuzu-71ca84d8299f7eb6779e95e808b3ec7f8505354b.tar.xz yuzu-71ca84d8299f7eb6779e95e808b3ec7f8505354b.zip | |
Settings: eliminate rescaling_factor.
Diffstat (limited to 'src/video_core')
| -rw-r--r-- | src/video_core/video_core.cpp | 9 | ||||
| -rw-r--r-- | src/video_core/video_core.h | 2 |
2 files changed, 5 insertions, 6 deletions
diff --git a/src/video_core/video_core.cpp b/src/video_core/video_core.cpp index cae543a51..508173db3 100644 --- a/src/video_core/video_core.cpp +++ b/src/video_core/video_core.cpp | |||
| @@ -53,11 +53,10 @@ std::unique_ptr<Tegra::GPU> CreateGPU(Core::Frontend::EmuWindow& emu_window, Cor | |||
| 53 | } | 53 | } |
| 54 | } | 54 | } |
| 55 | 55 | ||
| 56 | u16 GetResolutionScaleFactor(const RendererBase& renderer) { | 56 | float GetResolutionScaleFactor(const RendererBase& renderer) { |
| 57 | return static_cast<u16>( | 57 | return Settings::values.resolution_info.active |
| 58 | Settings::values.resolution_factor.GetValue() != 0 | 58 | ? Settings::values.resolution_info.up_factor |
| 59 | ? Settings::values.resolution_factor.GetValue() | 59 | : renderer.GetRenderWindow().GetFramebufferLayout().GetScalingRatio(); |
| 60 | : renderer.GetRenderWindow().GetFramebufferLayout().GetScalingRatio()); | ||
| 61 | } | 60 | } |
| 62 | 61 | ||
| 63 | } // namespace VideoCore | 62 | } // namespace VideoCore |
diff --git a/src/video_core/video_core.h b/src/video_core/video_core.h index f5c27125d..f86877e86 100644 --- a/src/video_core/video_core.h +++ b/src/video_core/video_core.h | |||
| @@ -25,6 +25,6 @@ class RendererBase; | |||
| 25 | /// Creates an emulated GPU instance using the given system context. | 25 | /// Creates an emulated GPU instance using the given system context. |
| 26 | std::unique_ptr<Tegra::GPU> CreateGPU(Core::Frontend::EmuWindow& emu_window, Core::System& system); | 26 | std::unique_ptr<Tegra::GPU> CreateGPU(Core::Frontend::EmuWindow& emu_window, Core::System& system); |
| 27 | 27 | ||
| 28 | u16 GetResolutionScaleFactor(const RendererBase& renderer); | 28 | float GetResolutionScaleFactor(const RendererBase& renderer); |
| 29 | 29 | ||
| 30 | } // namespace VideoCore | 30 | } // namespace VideoCore |