diff options
| author | 2021-11-21 02:31:32 -0800 | |
|---|---|---|
| committer | 2021-11-21 02:31:32 -0800 | |
| commit | 5082712b4e44ebfe48bd587ea2fa38767b7339cb (patch) | |
| tree | cd2a9393ea5e7d83938baf1f069fc2689e8398af /src/core/frontend/framebuffer_layout.cpp | |
| parent | Merge pull request #7359 from heinermann/kthread_crash (diff) | |
| parent | Fix screenshot dimensions when at 1x scale (diff) | |
| download | yuzu-5082712b4e44ebfe48bd587ea2fa38767b7339cb.tar.gz yuzu-5082712b4e44ebfe48bd587ea2fa38767b7339cb.tar.xz yuzu-5082712b4e44ebfe48bd587ea2fa38767b7339cb.zip | |
Merge pull request #7389 from ameerj/screenshot-1x
Fix screenshot dimensions when at 1x scale
Diffstat (limited to 'src/core/frontend/framebuffer_layout.cpp')
| -rw-r--r-- | src/core/frontend/framebuffer_layout.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/core/frontend/framebuffer_layout.cpp b/src/core/frontend/framebuffer_layout.cpp index 4b58b672a..26a5b12aa 100644 --- a/src/core/frontend/framebuffer_layout.cpp +++ b/src/core/frontend/framebuffer_layout.cpp | |||
| @@ -25,7 +25,12 @@ FramebufferLayout DefaultFrameLayout(u32 width, u32 height) { | |||
| 25 | ASSERT(height > 0); | 25 | ASSERT(height > 0); |
| 26 | // The drawing code needs at least somewhat valid values for both screens | 26 | // The drawing code needs at least somewhat valid values for both screens |
| 27 | // so just calculate them both even if the other isn't showing. | 27 | // so just calculate them both even if the other isn't showing. |
| 28 | FramebufferLayout res{width, height, false, {}}; | 28 | FramebufferLayout res{ |
| 29 | .width = width, | ||
| 30 | .height = height, | ||
| 31 | .screen = {}, | ||
| 32 | .is_srgb = false, | ||
| 33 | }; | ||
| 29 | 34 | ||
| 30 | const float window_aspect_ratio = static_cast<float>(height) / static_cast<float>(width); | 35 | const float window_aspect_ratio = static_cast<float>(height) / static_cast<float>(width); |
| 31 | const float emulation_aspect_ratio = EmulationAspectRatio( | 36 | const float emulation_aspect_ratio = EmulationAspectRatio( |