mirror of
				https://github.com/yuzu-emu/yuzu.git
				synced 2025-11-04 12:03:44 +00:00 
			
		
		
		
	Merge pull request #1975 from lioncash/vi
service/vi: Minor updates and corrections to the DisplayInfo struct
This commit is contained in:
		
						commit
						de4f931d13
					
				@ -33,11 +33,22 @@
 | 
				
			|||||||
namespace Service::VI {
 | 
					namespace Service::VI {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
struct DisplayInfo {
 | 
					struct DisplayInfo {
 | 
				
			||||||
 | 
					    /// The name of this particular display.
 | 
				
			||||||
    char display_name[0x40]{"Default"};
 | 
					    char display_name[0x40]{"Default"};
 | 
				
			||||||
    u64 unknown_1{1};
 | 
					
 | 
				
			||||||
    u64 unknown_2{1};
 | 
					    /// Whether or not the display has a limited number of layers.
 | 
				
			||||||
    u64 width{1280};
 | 
					    u8 has_limited_layers{1};
 | 
				
			||||||
    u64 height{720};
 | 
					    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");
 | 
					static_assert(sizeof(DisplayInfo) == 0x60, "DisplayInfo has wrong size");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user