From cd8dba3c145685131b22210f70878748ef3f049b Mon Sep 17 00:00:00 2001 From: Burt P Date: Tue, 27 Aug 2019 18:40:54 -0500 Subject: monitors: edid ETB fixes Signed-off-by: Burt P --- deps/sysobj_early/src/util_edid.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'deps/sysobj_early') diff --git a/deps/sysobj_early/src/util_edid.c b/deps/sysobj_early/src/util_edid.c index 224c1eb8..28773f96 100644 --- a/deps/sysobj_early/src/util_edid.c +++ b/deps/sysobj_early/src/util_edid.c @@ -508,13 +508,13 @@ edid *edid_new(const char *data, unsigned int len) { } /* established timing bitmap */ -#define ETB_CHECK(byte, bit, h, v, f, i) \ - if (byte & (1<u8[BYT] & (1<etbs[e->etb_count] = e->img; \ - e->etbs[e->etb_count].horiz_pixels = h; \ - e->etbs[e->etb_count].vert_pixels = v; \ - e->etbs[e->etb_count].vert_freq_hz = f; \ - e->etbs[e->etb_count].is_interlaced = i; \ + e->etbs[e->etb_count].horiz_pixels = HP; \ + e->etbs[e->etb_count].vert_pixels = VP; \ + e->etbs[e->etb_count].vert_freq_hz = RF; \ + e->etbs[e->etb_count].is_interlaced = IL;\ e->etbs[e->etb_count].src = OUTSRC_ETB; \ edid_output_fill(&e->etbs[e->etb_count]);\ e->etb_count++; }; @@ -534,7 +534,7 @@ edid *edid_new(const char *data, unsigned int len) { ETB_CHECK(36, 2, 1024, 768, 70, 0); ETB_CHECK(36, 1, 1024, 768, 75, 0); ETB_CHECK(36, 0, 1280, 1024, 75, 0); - ETB_CHECK(35, 7, 1152, 870, 75, 0); //(Apple Macintosh II) + ETB_CHECK(37, 7, 1152, 870, 75, 0); //(Apple Macintosh II) /* standard timings */ for(i = 38; i < 53; i+=2) { -- cgit v1.2.3