diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/core/frontend/framebuffer_layout.cpp | 4 | ||||
| -rw-r--r-- | src/core/frontend/framebuffer_layout.h | 16 |
2 files changed, 10 insertions, 10 deletions
diff --git a/src/core/frontend/framebuffer_layout.cpp b/src/core/frontend/framebuffer_layout.cpp index 2dc795d56..68a0e0906 100644 --- a/src/core/frontend/framebuffer_layout.cpp +++ b/src/core/frontend/framebuffer_layout.cpp | |||
| @@ -48,8 +48,8 @@ FramebufferLayout FrameLayoutFromResolutionScale(u32 res_scale) { | |||
| 48 | u32 width, height; | 48 | u32 width, height; |
| 49 | 49 | ||
| 50 | if (Settings::values.use_docked_mode) { | 50 | if (Settings::values.use_docked_mode) { |
| 51 | width = ScreenDocked::WidthDocked * res_scale; | 51 | width = ScreenDocked::Width * res_scale; |
| 52 | height = ScreenDocked::HeightDocked * res_scale; | 52 | height = ScreenDocked::Height * res_scale; |
| 53 | } else { | 53 | } else { |
| 54 | width = ScreenUndocked::Width * res_scale; | 54 | width = ScreenUndocked::Width * res_scale; |
| 55 | height = ScreenUndocked::Height * res_scale; | 55 | height = ScreenUndocked::Height * res_scale; |
diff --git a/src/core/frontend/framebuffer_layout.h b/src/core/frontend/framebuffer_layout.h index e9d0a40d3..15ecfb13d 100644 --- a/src/core/frontend/framebuffer_layout.h +++ b/src/core/frontend/framebuffer_layout.h | |||
| @@ -8,15 +8,15 @@ | |||
| 8 | 8 | ||
| 9 | namespace Layout { | 9 | namespace Layout { |
| 10 | 10 | ||
| 11 | enum ScreenUndocked : u32 { | 11 | namespace ScreenUndocked { |
| 12 | Width = 1280, | 12 | constexpr u32 Width = 1280; |
| 13 | Height = 720, | 13 | constexpr u32 Height = 720; |
| 14 | }; | 14 | } // namespace ScreenUndocked |
| 15 | 15 | ||
| 16 | enum ScreenDocked : u32 { | 16 | namespace ScreenDocked { |
| 17 | WidthDocked = 1920, | 17 | constexpr u32 Width = 1920; |
| 18 | HeightDocked = 1080, | 18 | constexpr u32 Height = 1080; |
| 19 | }; | 19 | } // namespace ScreenDocked |
| 20 | 20 | ||
| 21 | enum class AspectRatio { | 21 | enum class AspectRatio { |
| 22 | Default, | 22 | Default, |