summaryrefslogtreecommitdiff
path: root/src/core/frontend/framebuffer_layout.h
diff options
context:
space:
mode:
authorGravatar Morph2020-02-13 23:13:23 -0500
committerGravatar Morph2020-02-13 23:13:23 -0500
commit22f58cca5e0be7a40c8c8fbebe3d45fb68dfcf10 (patch)
treecd026822fec8db0b27fa7bed40d4c152d4c918c2 /src/core/frontend/framebuffer_layout.h
parentAdd following aspect ratios: 16:9, 21:9, Stretch to Window (diff)
downloadyuzu-22f58cca5e0be7a40c8c8fbebe3d45fb68dfcf10.tar.gz
yuzu-22f58cca5e0be7a40c8c8fbebe3d45fb68dfcf10.tar.xz
yuzu-22f58cca5e0be7a40c8c8fbebe3d45fb68dfcf10.zip
Use enumeration instead of magic numbers
Diffstat (limited to 'src/core/frontend/framebuffer_layout.h')
-rw-r--r--src/core/frontend/framebuffer_layout.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/core/frontend/framebuffer_layout.h b/src/core/frontend/framebuffer_layout.h
index d2370adde..948c140ac 100644
--- a/src/core/frontend/framebuffer_layout.h
+++ b/src/core/frontend/framebuffer_layout.h
@@ -18,6 +18,12 @@ enum ScreenDocked : u32 {
18 HeightDocked = 1080, 18 HeightDocked = 1080,
19}; 19};
20 20
21enum class Aspect {
22 AspectDefault,
23 Aspect21by9,
24 AspectStretch,
25};
26
21/// Describes the layout of the window framebuffer 27/// Describes the layout of the window framebuffer
22struct FramebufferLayout { 28struct FramebufferLayout {
23 u32 width{ScreenUndocked::Width}; 29 u32 width{ScreenUndocked::Width};