diff options
author | Andy Ritger <aritger@nvidia.com> | 2010-01-15 00:50:51 -0800 |
---|---|---|
committer | Aaron Plattner <aplattner@nvidia.com> | 2010-01-15 00:50:51 -0800 |
commit | d5d8479137dc5f1b9cb60b77297c577db3df3226 (patch) | |
tree | 63faac478f883eb8bf1f97a51dcdf90bb67aaa75 | |
parent | 8787f02b434a05b0986499dcff0fb434e9360927 (diff) |
Remove X_XF86VidModeGetGammaRampSize checks.
The protocol defines were moved to a different header in recent versions of the
XF86VidMode protocol packages, which breaks the build.
The GammaRamp related entry points were added to the XF86VidMode extension in
version 2.1. Years ago, it was not uncommon to try to build nvidia-settings
with a pre-2.1 version of xf86vmode.h, but I don't think that happens frequently
any more.
Signed-off-by: Aaron Plattner <aplattner@nvidia.com>
-rw-r--r-- | src/libXNVCtrlAttributes/NvCtrlAttributesVidMode.c | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/src/libXNVCtrlAttributes/NvCtrlAttributesVidMode.c b/src/libXNVCtrlAttributes/NvCtrlAttributesVidMode.c index 633c078..c445a6a 100644 --- a/src/libXNVCtrlAttributes/NvCtrlAttributesVidMode.c +++ b/src/libXNVCtrlAttributes/NvCtrlAttributesVidMode.c @@ -41,8 +41,6 @@ static unsigned short computeVal(NvCtrlAttributePrivateHandle *, #define BLUE BLUE_CHANNEL_INDEX -#if defined(X_XF86VidModeGetGammaRampSize) - /* * XXX The XF86VidMode extension can block remote clients. * Unfortunately, there doesn't seem to be a good way to determine if @@ -72,9 +70,6 @@ static int vidModeErrorHandler(Display *dpy, XErrorEvent *err) return 1; } -#endif /* X_XF86VidModeGetGammaRampSize */ - - NvCtrlVidModeAttributes * @@ -89,8 +84,6 @@ NvCtrlInitVidModeAttributes(NvCtrlAttributePrivateHandle *h) goto failed; } -#if defined(X_XF86VidModeGetGammaRampSize) - ret = XF86VidModeQueryExtension(h->dpy, &event, &vidModeErrorBase); if (ret != True) goto failed; @@ -190,12 +183,6 @@ NvCtrlInitVidModeAttributes(NvCtrlAttributePrivateHandle *h) return (vm); -#else - -#warning Old xf86vmode.h; dynamic gamma ramp support will not be compiled. - -#endif - blocked: nv_warning_msg("The VidMode extension is blocked for remote " @@ -272,8 +259,6 @@ ReturnStatus NvCtrlSetColorAttributes(NvCtrlAttributeHandle *handle, int i, ch; Bool ret; -#if defined(X_XF86VidModeGetGammaRampSize) - NvCtrlAttributePrivateHandle *h; h = (NvCtrlAttributePrivateHandle *) handle; @@ -340,10 +325,6 @@ ReturnStatus NvCtrlSetColorAttributes(NvCtrlAttributeHandle *handle, if (ret != True) return NvCtrlError; return NvCtrlSuccess; -#else - return NvCtrlMissingExtension; - -#endif /* X_XF86VidModeGetGammaRampSize */ } /* NvCtrlSetColorAttribute() */ @@ -353,8 +334,6 @@ ReturnStatus NvCtrlGetColorRamp(NvCtrlAttributeHandle *handle, unsigned short **lut, int *n) { -#if defined(X_XF86VidModeGetGammaRampSize) - NvCtrlAttributePrivateHandle *h; h = (NvCtrlAttributePrivateHandle *) handle; @@ -375,9 +354,6 @@ ReturnStatus NvCtrlGetColorRamp(NvCtrlAttributeHandle *handle, } return NvCtrlSuccess; -#else - return NvCtrlMissingExtension; -#endif } |