[PATCH dummy 1/2] Only include Xv headers if server supports it
Yaakov (Cygwin/X)
yselkowitz at users.sourceforge.net
Wed Apr 4 15:57:37 PDT 2012
Ping?
On 2012-03-28 00:16, Yaakov (Cygwin/X) wrote:
> diff --git a/src/dummy.h b/src/dummy.h
> index 3442f63..966ab02 100644
> --- a/src/dummy.h
> +++ b/src/dummy.h
> @@ -5,8 +5,10 @@
>
> #include "xf86Cursor.h"
>
> +#ifdef XvExtension
> #include "xf86xv.h"
> #include<X11/extensions/Xv.h>
> +#endif
> #include<string.h>
>
> /* Supported chipsets */
> @@ -57,7 +59,9 @@ typedef struct dummyRec
>
> Bool screenSaver;
> Bool video;
> +#ifdef XvExtension
> XF86VideoAdaptorPtr overlayAdaptor;
> +#endif
> int overlay;
> int overlay_offset;
> int videoKey;
> diff --git a/src/dummy_driver.c b/src/dummy_driver.c
> index 6533b27..791855f 100644
> --- a/src/dummy_driver.c
> +++ b/src/dummy_driver.c
> @@ -32,8 +32,10 @@
>
> #include "picturestr.h"
>
> +#ifdef XvExtension
> #include "xf86xv.h"
> #include<X11/extensions/Xv.h>
> +#endif
>
> /*
> * Driver data structures.
More information about the xorg-devel
mailing list