You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Just FYI, I've put together a more detailed version of the private struct for display mode descriptions.
typedefstructCGSDisplayModeDescription {
uint32_tioDisplayModeID_alt; // Should be the same as ioDisplayModeuint32_tioFlags_alt; // Mostly the same but slightly different to ioFlagsuint32_twidth;
uint32_theight;
uint32_tmaxDepthIndex;
uint32_tbytesPerRow;
uint32_tbitsPerPixel;
uint32_tbitsPerSample;
uint32_tsamplesPerPixel;
uint32_trefreshRate;
uint32_tunknown[2];
charpixelEncoding[64];
uint32_tunknown2[19];
uint32_trefreshRate_fixed; // 16.16 fixed fractionuint32_tioFlags;
uint32_tioDisplayModeID;
uint32_tpixelWidth;
uint32_tpixelHeight;
floatbackingScaleFactor;
} CGSDisplayModeDescription;
Just FYI, I've put together a more detailed version of the private struct for display mode descriptions.
The following documents were helpful references for this:
https://developer.apple.com/documentation/coregraphics/cgdisplaymode
https://developer.apple.com/documentation/coregraphics/quartz_display_services/display_mode_standard_properties
https://github.com/aosm/IOGraphics/blob/ae89a5073a37ffd77cfb964921e05fc90810dbb8/IOGraphicsFamily/IOKit/graphics/IOGraphicsTypes.h#L128
The text was updated successfully, but these errors were encountered: