diff options
| author | 2020-02-13 23:13:23 -0500 | |
|---|---|---|
| committer | 2020-02-13 23:13:23 -0500 | |
| commit | 22f58cca5e0be7a40c8c8fbebe3d45fb68dfcf10 (patch) | |
| tree | cd026822fec8db0b27fa7bed40d4c152d4c918c2 /src/core/frontend/framebuffer_layout.h | |
| parent | Add following aspect ratios: 16:9, 21:9, Stretch to Window (diff) | |
| download | yuzu-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.h | 6 |
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 | ||
| 21 | enum 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 |
| 22 | struct FramebufferLayout { | 28 | struct FramebufferLayout { |
| 23 | u32 width{ScreenUndocked::Width}; | 29 | u32 width{ScreenUndocked::Width}; |