summaryrefslogtreecommitdiff
path: root/src/common/framebuffer_layout.h
diff options
context:
space:
mode:
authorGravatar James Rowe2016-11-10 00:36:07 -0700
committerGravatar James Rowe2016-11-12 10:49:47 -0700
commit793339b73a9bc87d6fa22742be4631565c2201db (patch)
tree5177fdef58d7cf99fded0d913072372a425cbe63 /src/common/framebuffer_layout.h
parentAdd default hotkey to swap primary screens. (diff)
downloadyuzu-793339b73a9bc87d6fa22742be4631565c2201db.tar.gz
yuzu-793339b73a9bc87d6fa22742be4631565c2201db.tar.xz
yuzu-793339b73a9bc87d6fa22742be4631565c2201db.zip
Round the rectangle size to prevent float to int casting issues
And other minor style changes
Diffstat (limited to '')
-rw-r--r--src/common/framebuffer_layout.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/common/framebuffer_layout.h b/src/common/framebuffer_layout.h
index 7f88c9463..a125646a3 100644
--- a/src/common/framebuffer_layout.h
+++ b/src/common/framebuffer_layout.h
@@ -20,14 +20,16 @@ struct FramebufferLayout {
20 * Factory method for constructing a default FramebufferLayout 20 * Factory method for constructing a default FramebufferLayout
21 * @param width Window framebuffer width in pixels 21 * @param width Window framebuffer width in pixels
22 * @param height Window framebuffer height in pixels 22 * @param height Window framebuffer height in pixels
23 * @param is_swapped if true, the bottom screen will be displayed above the top screen
23 * @return Newly created FramebufferLayout object with default screen regions initialized 24 * @return Newly created FramebufferLayout object with default screen regions initialized
24 */ 25 */
25FramebufferLayout DefaultFrameLayout(unsigned width, unsigned height, bool is_swapped); 26FramebufferLayout DefaultFrameLayout(unsigned width, unsigned height, bool is_swapped);
26 27
27/** 28/**
28 * Factory method for constructing a FramebufferLayout with only the top screen 29 * Factory method for constructing a FramebufferLayout with only the top or bottom screen
29 * @param width Window framebuffer width in pixels 30 * @param width Window framebuffer width in pixels
30 * @param height Window framebuffer height in pixels 31 * @param height Window framebuffer height in pixels
32 * @param is_swapped if true, the bottom screen will be displayed (and the top won't be displayed)
31 * @return Newly created FramebufferLayout object with default screen regions initialized 33 * @return Newly created FramebufferLayout object with default screen regions initialized
32 */ 34 */
33FramebufferLayout SingleFrameLayout(unsigned width, unsigned height, bool is_swapped); 35FramebufferLayout SingleFrameLayout(unsigned width, unsigned height, bool is_swapped);
@@ -38,7 +40,8 @@ FramebufferLayout SingleFrameLayout(unsigned width, unsigned height, bool is_swa
38 * This is useful in particular because it matches well with a 1920x1080 resolution monitor 40 * This is useful in particular because it matches well with a 1920x1080 resolution monitor
39 * @param width Window framebuffer width in pixels 41 * @param width Window framebuffer width in pixels
40 * @param height Window framebuffer height in pixels 42 * @param height Window framebuffer height in pixels
43 * @param is_swapped if true, the bottom screen will be the large display
41 * @return Newly created FramebufferLayout object with default screen regions initialized 44 * @return Newly created FramebufferLayout object with default screen regions initialized
42 */ 45 */
43FramebufferLayout LargeFrameLayout(unsigned width, unsigned height, bool is_swapped); 46FramebufferLayout LargeFrameLayout(unsigned width, unsigned height, bool is_swapped);
44} \ No newline at end of file 47}