summaryrefslogtreecommitdiff
path: root/src/core/frontend/framebuffer_layout.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/frontend/framebuffer_layout.h')
-rw-r--r--src/core/frontend/framebuffer_layout.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/core/frontend/framebuffer_layout.h b/src/core/frontend/framebuffer_layout.h
index f3fddfa94..e06647794 100644
--- a/src/core/frontend/framebuffer_layout.h
+++ b/src/core/frontend/framebuffer_layout.h
@@ -9,6 +9,7 @@
9namespace Layout { 9namespace Layout {
10 10
11enum ScreenUndocked : unsigned { Width = 1280, Height = 720 }; 11enum ScreenUndocked : unsigned { Width = 1280, Height = 720 };
12enum ScreenDocked : unsigned { WidthDocked = 1920, HeightDocked = 1080 };
12 13
13/// Describes the layout of the window framebuffer 14/// Describes the layout of the window framebuffer
14struct FramebufferLayout { 15struct FramebufferLayout {
@@ -34,4 +35,10 @@ struct FramebufferLayout {
34 */ 35 */
35FramebufferLayout DefaultFrameLayout(unsigned width, unsigned height); 36FramebufferLayout DefaultFrameLayout(unsigned width, unsigned height);
36 37
38/**
39 * Convenience method to get frame layout by resolution scale
40 * @param res_scale resolution scale factor
41 */
42FramebufferLayout FrameLayoutFromResolutionScale(u16 res_scale);
43
37} // namespace Layout 44} // namespace Layout