diff options
author | Burt P <pburt0@gmail.com> | 2019-08-27 18:40:54 -0500 |
---|---|---|
committer | Leandro A. F. Pereira <leandro@hardinfo.org> | 2019-08-28 13:15:48 +0200 |
commit | cd8dba3c145685131b22210f70878748ef3f049b (patch) | |
tree | 042279fdb7774c6ab0687821d4e79943e56c39e2 /deps | |
parent | 517f726a4a61e7b18e1d290d28bcbd43a072af58 (diff) |
monitors: edid ETB fixes
Signed-off-by: Burt P <pburt0@gmail.com>
Diffstat (limited to 'deps')
-rw-r--r-- | deps/sysobj_early/src/util_edid.c | 14 |
1 files changed, 7 insertions, 7 deletions
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<<bit)) { \ +#define ETB_CHECK(BYT, BIT, HP, VP, RF, IL) \ + if (e->u8[BYT] & (1<<BIT)) { \ e->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) { |