diff --git a/c/src/lib/libbsp/i386/pc386/console/fb_vesa_rm.c b/c/src/lib/libbsp/i386/pc386/console/fb_vesa_rm.c
index b758564..fa41d01 100644
a
|
b
|
static int32_t find_mode_using_EDID( Mode_params *mode_list, |
499 | 499 | while (index < 8) |
500 | 500 | { |
501 | 501 | /* check if descriptor is unused */ |
502 | | if (*(uint16_t*)&edid.STI[index] == EDID_STI_DescriptorUnused) |
| 502 | if (edid1_STI_is_unused(&edid.STI[index])) |
503 | 503 | { |
504 | 504 | index++; |
505 | 505 | continue; |
diff --git a/c/src/lib/libbsp/i386/pc386/include/edid.h b/c/src/lib/libbsp/i386/pc386/include/edid.h
index 1120296..45cc6e6 100644
a
|
b
|
EDID_INLINE_ROUTINE uint16_t edid1_WhiteY (EDID_edid1 *edid) { |
473 | 473 | return (edid->WhiteYHigh<<2) | (edid->WhiteBlueLow&0x3); |
474 | 474 | } |
475 | 475 | |
| 476 | EDID_INLINE_ROUTINE int edid1_STI_is_unused ( |
| 477 | const EDID_standard_timing_identification *edid_sti) { |
| 478 | return (edid_sti->HorizontalActivePixels == |
| 479 | (uint8_t)EDID_STI_DescriptorUnused) && |
| 480 | (edid_sti->ImageAspectRatio_RefreshRate == |
| 481 | (uint8_t)(EDID_STI_DescriptorUnused >> 8)); |
| 482 | } |
| 483 | |
476 | 484 | enum edid1_established_timings { |
477 | 485 | /* Established Timings I */ |
478 | 486 | EST_800x600_60Hz = 0, |