* fix qemu for m68k by just using tcg-interpreter, too
[t2sde.git] / package / xorg / xf86-video-vesa / no-ddc-option.patch
blob623f403acc5dbc1a14b7ec72e7f3121daf0d6e34
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
3 #
4 # T2 SDE: package/.../xf86-video-vesa/no-ddc-option.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 2008-07-01 19:40:04.000000000 +0200
18 +++ xf86-video-vesa-2.0.0-noddc/src/vesa.c 2008-10-20 11:54:13.000000000 +0200
19 @@ -163,7 +163,8 @@
20 typedef enum {
21 OPTION_SHADOW_FB,
22 OPTION_DFLT_REFRESH,
23 - OPTION_MODESET_CLEAR_SCREEN
24 + OPTION_MODESET_CLEAR_SCREEN,
25 + OPTION_NO_DDC
26 } VESAOpts;
28 static const OptionInfoRec VESAOptions[] = {
29 @@ -171,6 +172,7 @@
30 { OPTION_DFLT_REFRESH, "DefaultRefresh", OPTV_BOOLEAN, {0}, FALSE },
31 { OPTION_MODESET_CLEAR_SCREEN, "ModeSetClearScreen",
32 OPTV_BOOLEAN, {0}, FALSE },
33 + { OPTION_NO_DDC, "NoDDC", OPTV_BOOLEAN, {0}, FALSE },
34 { -1, NULL, OPTV_NONE, {0}, FALSE }
37 @@ -625,7 +627,10 @@
39 xf86SetGamma(pScrn, gzeros);
41 - if (pVesa->major >= 2) {
42 + /* Honour Option "noDDC" */
43 + if (pVesa->major >= 2 &&
44 + !xf86ReturnOptValBool(pVesa->Options, OPTION_NO_DDC, FALSE))
45 + {
46 /* Load ddc module */
47 if ((pDDCModule = xf86LoadSubModule(pScrn, "ddc")) == NULL) {
48 vbeFree(pVesa->pVbe);