Dash:
[t2-trunk.git] / package / xorg / xf86-video-vesa / xf86GTFMode.patch
blob459b2abb0559665fdb3df6ead488584904bcbe50
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
3 #
4 # T2 SDE: package/.../xf86-video-vesa/xf86GTFMode.patch
5 # Copyright (C) 2008 The T2 SDE Project
6 #
7 # More information can be found in the files COPYING and README.
8 #
9 # This patch file is dual-licensed. It is available under the license the
10 # patched project is licensed under, as long as it is an OpenSource license
11 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
12 # of the GNU General Public License as published by the Free Software
13 # Foundation; either version 2 of the License, or (at your option) any later
14 # version.
15 # --- T2-COPYRIGHT-NOTE-END ---
17 --- xf86-video-vesa-2.0.0/src/vesa.c.orig 2008-10-22 09:40:13.000000000 +0200
18 +++ xf86-video-vesa-2.0.0/src/vesa.c 2008-10-22 09:41:15.000000000 +0200
19 @@ -342,7 +342,12 @@
20 * then, by this point, you're well into despair territory.
22 for (v = mon->vrefresh[0].lo; v <= mon->vrefresh[0].hi; v++) {
23 +#if XORG_VERSION_CURRENT > XORG_VERSION_NUMERIC(1,4,2,0,0)
24 + /* xf86GTFMode is only avalaible in newer versions of Xorg */
25 mode = xf86GTFMode(p->HDisplay, p->VDisplay, v, 0, 0);
26 +#else
27 + mode = xf86CVTMode(p->HDisplay, p->VDisplay, v, FALSE, FALSE);
28 +#endif
29 ret = xf86CheckModeForMonitor(mode, mon);
30 xfree(mode);
31 if (ret == MODE_OK)