diff options
| author | 2019-01-03 22:45:27 -0500 | |
|---|---|---|
| committer | 2019-01-03 22:45:27 -0500 | |
| commit | de4f931d1334a17ccf6137139b6018879b704bf9 (patch) | |
| tree | 596a1170e992c67548362b88f41ba79385c5d281 /src/core/hle | |
| parent | Merge pull request #1979 from ogniK5377/30-fps (diff) | |
| parent | service/vi: Correct initial width and height values (diff) | |
| download | yuzu-de4f931d1334a17ccf6137139b6018879b704bf9.tar.gz yuzu-de4f931d1334a17ccf6137139b6018879b704bf9.tar.xz yuzu-de4f931d1334a17ccf6137139b6018879b704bf9.zip | |
Merge pull request #1975 from lioncash/vi
service/vi: Minor updates and corrections to the DisplayInfo struct
Diffstat (limited to 'src/core/hle')
| -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 @@ | |||
| 33 | namespace Service::VI { | 33 | namespace Service::VI { |
| 34 | 34 | ||
| 35 | struct DisplayInfo { | 35 | struct DisplayInfo { |
| 36 | /// The name of this particular display. | ||
| 36 | char display_name[0x40]{"Default"}; | 37 | char display_name[0x40]{"Default"}; |
| 37 | u64 unknown_1{1}; | 38 | |
| 38 | u64 unknown_2{1}; | 39 | /// Whether or not the display has a limited number of layers. |
| 39 | u64 width{1280}; | 40 | u8 has_limited_layers{1}; |
| 40 | u64 height{720}; | 41 | INSERT_PADDING_BYTES(7){}; |
| 42 | |||
| 43 | /// Indicates the total amount of layers supported by the display. | ||
| 44 | /// @note This is only valid if has_limited_layers is set. | ||
| 45 | u64 max_layers{1}; | ||
| 46 | |||
| 47 | /// Maximum width in pixels. | ||
| 48 | u64 width{1920}; | ||
| 49 | |||
| 50 | /// Maximum height in pixels. | ||
| 51 | u64 height{1080}; | ||
| 41 | }; | 52 | }; |
| 42 | static_assert(sizeof(DisplayInfo) == 0x60, "DisplayInfo has wrong size"); | 53 | static_assert(sizeof(DisplayInfo) == 0x60, "DisplayInfo has wrong size"); |
| 43 | 54 | ||