mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-11-07 21:50:08 +01:00
PhycialDisplay: detect phycial size
This commit is contained in:
@@ -26,3 +26,9 @@ void ffEdidGetName(const uint8_t edid[128], FFstrbuf* name)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void ffEdidGetPhycialSize(const uint8_t edid[128], uint32_t* width, uint32_t* height)
|
||||
{
|
||||
*width = (((uint32_t) edid[68] & 0xF0) << 4) + edid[66];
|
||||
*height = (((uint32_t) edid[68] & 0x0F) << 8) + edid[67];
|
||||
}
|
||||
|
||||
@@ -8,5 +8,6 @@
|
||||
|
||||
void ffEdidGetName(const uint8_t edid[128], FFstrbuf* name);
|
||||
void ffEdidGetPhycialResolution(const uint8_t edid[128], uint32_t* width, uint32_t* height);
|
||||
void ffEdidGetPhycialSize(const uint8_t edid[128], uint32_t* width, uint32_t* height); // in mm
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user