diff options
author | bunnei <bunneidev@gmail.com> | 2019-01-04 04:45:27 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-04 04:45:27 +0100 |
commit | de4f931d1334a17ccf6137139b6018879b704bf9 (patch) | |
tree | 596a1170e992c67548362b88f41ba79385c5d281 /src/core/hle/service/vi | |
parent | Merge pull request #1979 from ogniK5377/30-fps (diff) | |
parent | service/vi: Correct initial width and height values (diff) | |
download | yuzu-de4f931d1334a17ccf6137139b6018879b704bf9.tar yuzu-de4f931d1334a17ccf6137139b6018879b704bf9.tar.gz yuzu-de4f931d1334a17ccf6137139b6018879b704bf9.tar.bz2 yuzu-de4f931d1334a17ccf6137139b6018879b704bf9.tar.lz yuzu-de4f931d1334a17ccf6137139b6018879b704bf9.tar.xz yuzu-de4f931d1334a17ccf6137139b6018879b704bf9.tar.zst yuzu-de4f931d1334a17ccf6137139b6018879b704bf9.zip |
Diffstat (limited to 'src/core/hle/service/vi')
-rw-r--r-- | src/core/hle/service/vi/vi.cpp | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/src/core/hle/service/vi/vi.cpp b/src/core/hle/service/vi/vi.cpp index a3b8cec72..8528925ec 100644 --- a/src/core/hle/service/vi/vi.cpp +++ b/src/core/hle/service/vi/vi.cpp @@ -33,11 +33,22 @@ namespace Service::VI { struct DisplayInfo { + /// The name of this particular display. char display_name[0x40]{"Default"}; - u64 unknown_1{1}; - u64 unknown_2{1}; - u64 width{1280}; - u64 height{720}; + + /// Whether or not the display has a limited number of layers. + u8 has_limited_layers{1}; + INSERT_PADDING_BYTES(7){}; + + /// Indicates the total amount of layers supported by the display. + /// @note This is only valid if has_limited_layers is set. + u64 max_layers{1}; + + /// Maximum width in pixels. + u64 width{1920}; + + /// Maximum height in pixels. + u64 height{1080}; }; static_assert(sizeof(DisplayInfo) == 0x60, "DisplayInfo has wrong size"); |