summaryrefslogtreecommitdiffstats
path: root/tools/ddcprobe/ddcxinfos.c
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2003-02-18 12:59:07 +0000
committerPascal Rigaux <pixel@mandriva.com>2003-02-18 12:59:07 +0000
commit074fc4bfaa48a3d853d029a1b0326b9bb763813f (patch)
tree41a17d5469bb7e46ae4548a7a25f76b63595587e /tools/ddcprobe/ddcxinfos.c
parent39d4fd243a6b5cf3771d47f2c7795473f1276ebf (diff)
downloaddrakx-074fc4bfaa48a3d853d029a1b0326b9bb763813f.tar
drakx-074fc4bfaa48a3d853d029a1b0326b9bb763813f.tar.gz
drakx-074fc4bfaa48a3d853d029a1b0326b9bb763813f.tar.bz2
drakx-074fc4bfaa48a3d853d029a1b0326b9bb763813f.tar.xz
drakx-074fc4bfaa48a3d853d029a1b0326b9bb763813f.zip
catch bad HorizSync or VertRefresh
(on Regis's monitor, it gives "62-0 Hz VertRefresh")
Diffstat (limited to 'tools/ddcprobe/ddcxinfos.c')
-rw-r--r--tools/ddcprobe/ddcxinfos.c2
1 files changed, 2 insertions, 0 deletions
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);