diff options
| author | bunnei <bunneidev@gmail.com> | 2021-11-21 02:31:32 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-11-21 02:31:32 -0800 |
| commit | 5082712b4e44ebfe48bd587ea2fa38767b7339cb (patch) | |
| tree | cd2a9393ea5e7d83938baf1f069fc2689e8398af /src/core/frontend/framebuffer_layout.h | |
| parent | ba5210675a57d729e427b4f3bc9942cd32f4a5b2 (diff) | |
| parent | fe1f06c856b768e9afcc9ba9ab8ef09b7152678c (diff) | |
Merge pull request #7389 from ameerj/screenshot-1x
Fix screenshot dimensions when at 1x scale
Diffstat (limited to 'src/core/frontend/framebuffer_layout.h')
| -rw-r--r-- | src/core/frontend/framebuffer_layout.h | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/src/core/frontend/framebuffer_layout.h b/src/core/frontend/framebuffer_layout.h index 2e36c0163..8e341e4e2 100644 --- a/src/core/frontend/framebuffer_layout.h +++ b/src/core/frontend/framebuffer_layout.h @@ -35,17 +35,8 @@ enum class AspectRatio { struct FramebufferLayout { u32 width{ScreenUndocked::Width}; u32 height{ScreenUndocked::Height}; - bool is_srgb{}; - Common::Rectangle<u32> screen; - - /** - * Returns the ration of pixel size of the screen, compared to the native size of the undocked - * Switch screen. - */ - float GetScalingRatio() const { - return static_cast<float>(screen.GetWidth()) / ScreenUndocked::Width; - } + bool is_srgb{}; }; /** |
