Skip to content

Commit 64287ee

Browse files
committed
Display: change physical size detection to use basic display parameters
Some monitor report invalid data in DTD. Ref: #1406
1 parent 1b83554 commit 64287ee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/util/edidHelper.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ bool ffEdidGetName(const uint8_t edid[128], FFstrbuf* name)
6565

6666
void ffEdidGetPhysicalSize(const uint8_t edid[128], uint32_t* width, uint32_t* height)
6767
{
68-
*width = (((uint32_t) edid[68] & 0xF0) << 4) + edid[66];
69-
*height = (((uint32_t) edid[68] & 0x0F) << 8) + edid[67];
68+
*width = edid[21] * 10;
69+
*height = edid[22] * 10;
7070
}
7171

7272
void ffEdidGetSerialAndManufactureDate(const uint8_t edid[128], uint32_t* serial, uint16_t* year, uint16_t* week)

0 commit comments

Comments
 (0)