Use enumeration instead of magic numbers
This commit is contained in:
parent
27e19f87c6
commit
22f58cca5e
2 changed files with 11 additions and 5 deletions
|
@ -18,6 +18,12 @@ enum ScreenDocked : u32 {
|
|||
HeightDocked = 1080,
|
||||
};
|
||||
|
||||
enum class Aspect {
|
||||
AspectDefault,
|
||||
Aspect21by9,
|
||||
AspectStretch,
|
||||
};
|
||||
|
||||
/// Describes the layout of the window framebuffer
|
||||
struct FramebufferLayout {
|
||||
u32 width{ScreenUndocked::Width};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue