diff options
author | Yuri Kunde Schlesner <yuriks@yuriks.net> | 2017-05-27 16:10:25 -0700 |
---|---|---|
committer | Yuri Kunde Schlesner <yuriks@yuriks.net> | 2017-05-27 16:10:25 -0700 |
commit | d1bf7919daf830befd8c2166f3844fcdb56d68fa (patch) | |
tree | 60ab4434e7a0503d7ca5f5d195d4709fe634f3c1 /src/common/framebuffer_layout.h | |
parent | ec8dfc8fb7218e5c552c42d30a68e13e350c3d0e (diff) |
Move framebuffer_layout from Common to Core
This removes a dependency inversion between core and common. It's also
the proper place for the file since it makes screen layout decisions
specific to the 3DS.
Diffstat (limited to 'src/common/framebuffer_layout.h')
-rw-r--r-- | src/common/framebuffer_layout.h | 55 |
1 files changed, 0 insertions, 55 deletions
diff --git a/src/common/framebuffer_layout.h b/src/common/framebuffer_layout.h deleted file mode 100644 index f1df5c55af..0000000000 --- a/src/common/framebuffer_layout.h +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright 2016 Citra Emulator Project -// Licensed under GPLv2 or any later version -// Refer to the license.txt file included. - -#pragma once - -#include "common/math_util.h" -namespace Layout { -/// Describes the layout of the window framebuffer (size and top/bottom screen positions) -struct FramebufferLayout { - unsigned width; - unsigned height; - bool top_screen_enabled; - bool bottom_screen_enabled; - MathUtil::Rectangle<unsigned> top_screen; - MathUtil::Rectangle<unsigned> bottom_screen; -}; - -/** - * Factory method for constructing a default FramebufferLayout - * @param width Window framebuffer width in pixels - * @param height Window framebuffer height in pixels - * @param is_swapped if true, the bottom screen will be displayed above the top screen - * @return Newly created FramebufferLayout object with default screen regions initialized - */ -FramebufferLayout DefaultFrameLayout(unsigned width, unsigned height, bool is_swapped); - -/** - * Factory method for constructing a FramebufferLayout with only the top or bottom screen - * @param width Window framebuffer width in pixels - * @param height Window framebuffer height in pixels - * @param is_swapped if true, the bottom screen will be displayed (and the top won't be displayed) - * @return Newly created FramebufferLayout object with default screen regions initialized - */ -FramebufferLayout SingleFrameLayout(unsigned width, unsigned height, bool is_swapped); - -/** - * Factory method for constructing a Frame with the a 4x size Top screen with a 1x size bottom - * screen on the right - * This is useful in particular because it matches well with a 1920x1080 resolution monitor - * @param width Window framebuffer width in pixels - * @param height Window framebuffer height in pixels - * @param is_swapped if true, the bottom screen will be the large display - * @return Newly created FramebufferLayout object with default screen regions initialized - */ -FramebufferLayout LargeFrameLayout(unsigned width, unsigned height, bool is_swapped); - -/** - * Factory method for constructing a custom FramebufferLayout - * @param width Window framebuffer width in pixels - * @param height Window framebuffer height in pixels - * @return Newly created FramebufferLayout object with default screen regions initialized - */ -FramebufferLayout CustomFrameLayout(unsigned width, unsigned height); -} |