# --- T2-COPYRIGHT-BEGIN --- # t2/package/*/xf86-video-vesa/xf86GTFMode.patch # Copyright (C) 2008 - 2026 The T2 SDE Project # SPDX-License-Identifier: GPL-2.0 or patched project license # --- T2-COPYRIGHT-END --- --- xf86-video-vesa-2.0.0/src/vesa.c.orig 2008-10-22 09:40:13.000000000 +0200 +++ xf86-video-vesa-2.0.0/src/vesa.c 2008-10-22 09:41:15.000000000 +0200 @@ -342,7 +342,12 @@ * then, by this point, you're well into despair territory. */ for (v = mon->vrefresh[0].lo; v <= mon->vrefresh[0].hi; v++) { +#if XORG_VERSION_CURRENT > XORG_VERSION_NUMERIC(1,4,2,0,0) + /* xf86GTFMode is only avalaible in newer versions of Xorg */ mode = xf86GTFMode(p->HDisplay, p->VDisplay, v, 0, 0); +#else + mode = xf86CVTMode(p->HDisplay, p->VDisplay, v, FALSE, FALSE); +#endif ret = xf86CheckModeForMonitor(mode, mon); xfree(mode); if (ret == MODE_OK)