Display services: Difference between revisions

No edit summary
No edit summary
Line 851: Line 851:


= DisplayInfo =
= DisplayInfo =
This is "nn::vi::DisplayInfo". This is a 0x60-byte structure.
{| class="wikitable" border="1"
{| class="wikitable" border="1"
|-
|-
! Offset || Size || Description
! Offset || Size || Description
|-
|-
| 0x0 || 0x40 || [[#DisplayName]]
| 0x0 || 0x40 || [[#DisplayName|Name]]
|-
|-
| 0x40 || 0x1 || Whether or not the display has a constrained number of layers.
| 0x40 || 0x1 || HasLayerLimit
|-
|-
| 0x41 || 0x7 || Padding/Reserved
| 0x41 || 0x7 || Reserved
|-
|-
| 0x48 || 0x8 || If this display has a constrained number of layers (0x40 is set), indicates the maximum number of layers.
| 0x48 || 0x8 || LayerCountMax
|-
|-
| 0x50 || 0x8 || Width in pixels
| 0x50 || 0x8 || LayerWidthPixelCountMax
|-  
|-  
| 0x58 || 0x8 || Height in pixels
| 0x58 || 0x8 || LayerHeightPixelCountMax
|}
|}
This is a 0x60-byte structure.


The width/height for the "Default" Display is the resolution for 1080p even when in handheld-mode.
The width/height for the "Default" Display is the resolution for 1080p even when in handheld-mode.


= DisplayName =
= DisplayName =
This is a 0x40-byte block: a NUL-terminated string.
This is "nn::vi::DisplayName". This is a 0x40-byte block: a NUL-terminated string.


Can be "Default", "External", "[https://en.wikipedia.org/wiki/Extended_Display_Identification_Data Edid]", "Internal" or "Null".
Can be "Default", "External", "[https://en.wikipedia.org/wiki/Extended_Display_Identification_Data Edid]", "Internal" or "Null".