From 074fc4bfaa48a3d853d029a1b0326b9bb763813f Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Tue, 18 Feb 2003 12:59:07 +0000 Subject: catch bad HorizSync or VertRefresh (on Regis's monitor, it gives "62-0 Hz VertRefresh") --- tools/ddcprobe/ddcxinfos.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tools') diff --git a/tools/ddcprobe/ddcxinfos.c b/tools/ddcprobe/ddcxinfos.c index 9888d5896..22ed653b8 100644 --- a/tools/ddcprobe/ddcxinfos.c +++ b/tools/ddcprobe/ddcxinfos.c @@ -39,6 +39,8 @@ int main(int argc, char **argv) vbe_get_edid_ranges(edid, &hmin, &hmax, &vmin, &vmax); modelines = vbe_get_edid_modelines(edid); + if (hmin > hmax || vmin > vmax) return 0; + printf(hmin ? "%d-%d kHz HorizSync\n" : "\n", hmin, hmax); printf(vmin ? "%d-%d Hz VertRefresh\n" : "\n", vmin, vmax); -- cgit v1.2.1