diff options
author | Aaron Plattner <aplattner@nvidia.com> | 2008-03-02 20:13:11 -0800 |
---|---|---|
committer | Aaron Plattner <aplattner@nvidia.com> | 2008-03-06 14:42:00 -0800 |
commit | a8d760f567b19268329c4682495caa591f08a854 (patch) | |
tree | 2866f22e1319b4851c48312aaa8b0a827fda97e8 /hw/xfree86/modes/xf86Modes.c | |
parent | ca616b902b2c5d0f046c7a042c11f045479e373a (diff) |
Get modes code building with old X servers again.
This change uses XORG_VERSION_CURRENT < 7.0 to mean "server newer than 1.2"
since XORG_VERSION current went backwards at some point.
Diffstat (limited to 'hw/xfree86/modes/xf86Modes.c')
-rw-r--r-- | hw/xfree86/modes/xf86Modes.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/hw/xfree86/modes/xf86Modes.c b/hw/xfree86/modes/xf86Modes.c index 9e3151254..aa2635c48 100644 --- a/hw/xfree86/modes/xf86Modes.c +++ b/hw/xfree86/modes/xf86Modes.c @@ -513,7 +513,12 @@ xf86ValidateModesBandwidth(ScrnInfoPtr pScrn, DisplayModePtr modeList, for (mode = modeList; mode != NULL; mode = mode->next) { if (xf86ModeBandwidth(mode, depth) > bandwidth) +#if XORG_VERSION_CURRENT < XORG_VERSION_NUMERIC(7,0,0,0,0) mode->status = MODE_BANDWIDTH; +#else + /* MODE_BANDWIDTH didn't exist in xserver 1.2 */ + mode->status = MODE_BAD; +#endif } } |