diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2003-02-18 12:59:07 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2003-02-18 12:59:07 +0000 |
commit | 074fc4bfaa48a3d853d029a1b0326b9bb763813f (patch) | |
tree | 41a17d5469bb7e46ae4548a7a25f76b63595587e | |
parent | 39d4fd243a6b5cf3771d47f2c7795473f1276ebf (diff) | |
download | drakx-backup-do-not-use-074fc4bfaa48a3d853d029a1b0326b9bb763813f.tar drakx-backup-do-not-use-074fc4bfaa48a3d853d029a1b0326b9bb763813f.tar.gz drakx-backup-do-not-use-074fc4bfaa48a3d853d029a1b0326b9bb763813f.tar.bz2 drakx-backup-do-not-use-074fc4bfaa48a3d853d029a1b0326b9bb763813f.tar.xz drakx-backup-do-not-use-074fc4bfaa48a3d853d029a1b0326b9bb763813f.zip |
catch bad HorizSync or VertRefresh
(on Regis's monitor, it gives "62-0 Hz VertRefresh")
-rw-r--r-- | tools/ddcprobe/ddcxinfos.c | 2 |
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); |