Skip to content

Commit 5f3ce50

Browse files
committed
Display (Linux): prefer detecting physical size from EDID
1 parent acfab74 commit 5f3ce50

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/detection/displayserver/linux/xcb.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,7 @@ static bool xcbRandrHandleCrtc(XcbRandrData* data, xcb_randr_crtc_t crtc, FFstrb
245245
{
246246
item->hdrStatus = ffEdidGetHdrCompatible(edidData, (uint32_t) edidLength) ? FF_DISPLAY_HDR_STATUS_SUPPORTED : FF_DISPLAY_HDR_STATUS_UNSUPPORTED;
247247
ffEdidGetSerialAndManufactureDate(edidData, &item->serial, &item->manufactureYear, &item->manufactureWeek);
248+
ffEdidGetPhysicalSize(edidData, &item->physicalWidth, &item->physicalHeight);
248249
}
249250

250251
return !!item;

src/detection/displayserver/linux/xlib.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,7 @@ static bool xrandrHandleCrtc(XrandrData* data, XRROutputInfo* output, FFstrbuf*
200200
{
201201
item->hdrStatus = ffEdidGetHdrCompatible(edidData, edidLength) ? FF_DISPLAY_HDR_STATUS_SUPPORTED : FF_DISPLAY_HDR_STATUS_UNSUPPORTED;
202202
ffEdidGetSerialAndManufactureDate(edidData, &item->serial, &item->manufactureYear, &item->manufactureWeek);
203+
ffEdidGetPhysicalSize(edidData, &item->physicalWidth, &item->physicalHeight);
203204
}
204205

205206
data->ffXRRFreeCrtcInfo(crtcInfo);

0 commit comments

Comments
 (0)