diff options
author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2021-07-20 18:29:52 +0200 |
---|---|---|
committer | Fernando Sahmkow <fsahmkow27@gmail.com> | 2021-11-16 22:11:27 +0100 |
commit | 71ca84d8299f7eb6779e95e808b3ec7f8505354b (patch) | |
tree | a837911a9e10aaf6ee4cc5204e929afb55dd1b1a /src/video_core/video_core.cpp | |
parent | Texture Cache: More rescaling fixes. (diff) | |
download | yuzu-71ca84d8299f7eb6779e95e808b3ec7f8505354b.tar yuzu-71ca84d8299f7eb6779e95e808b3ec7f8505354b.tar.gz yuzu-71ca84d8299f7eb6779e95e808b3ec7f8505354b.tar.bz2 yuzu-71ca84d8299f7eb6779e95e808b3ec7f8505354b.tar.lz yuzu-71ca84d8299f7eb6779e95e808b3ec7f8505354b.tar.xz yuzu-71ca84d8299f7eb6779e95e808b3ec7f8505354b.tar.zst yuzu-71ca84d8299f7eb6779e95e808b3ec7f8505354b.zip |
Diffstat (limited to 'src/video_core/video_core.cpp')
-rw-r--r-- | src/video_core/video_core.cpp | 9 |
1 files changed, 4 insertions, 5 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 } } -u16 GetResolutionScaleFactor(const RendererBase& renderer) { - return static_cast<u16>( - Settings::values.resolution_factor.GetValue() != 0 - ? Settings::values.resolution_factor.GetValue() - : renderer.GetRenderWindow().GetFramebufferLayout().GetScalingRatio()); +float GetResolutionScaleFactor(const RendererBase& renderer) { + return Settings::values.resolution_info.active + ? Settings::values.resolution_info.up_factor + : renderer.GetRenderWindow().GetFramebufferLayout().GetScalingRatio(); } } // namespace VideoCore |