diff options
author | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-11-20 23:48:22 +0100 |
---|---|---|
committer | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-11-20 23:50:24 +0100 |
commit | fe1f06c856b768e9afcc9ba9ab8ef09b7152678c (patch) | |
tree | 898ea044f1a8367a5ef5abd5841267b484774cb8 /src/core/frontend/framebuffer_layout.h | |
parent | Merge pull request #7294 from vonchenplus/fix_image_update_error_when_width_too_small (diff) | |
download | yuzu-fe1f06c856b768e9afcc9ba9ab8ef09b7152678c.tar yuzu-fe1f06c856b768e9afcc9ba9ab8ef09b7152678c.tar.gz yuzu-fe1f06c856b768e9afcc9ba9ab8ef09b7152678c.tar.bz2 yuzu-fe1f06c856b768e9afcc9ba9ab8ef09b7152678c.tar.lz yuzu-fe1f06c856b768e9afcc9ba9ab8ef09b7152678c.tar.xz yuzu-fe1f06c856b768e9afcc9ba9ab8ef09b7152678c.tar.zst yuzu-fe1f06c856b768e9afcc9ba9ab8ef09b7152678c.zip |
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{}; }; /** |