Re: [PATCH] Enable compilation on systems with older render libraries.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Aug 08, 2012 at 03:03:25PM -0500, Jeremy White wrote:
> ---
>  src/uxa/uxa-render.c |    2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/src/uxa/uxa-render.c b/src/uxa/uxa-render.c
> index ac80c45..b5554e7 100644
> --- a/src/uxa/uxa-render.c
> +++ b/src/uxa/uxa-render.c
> @@ -137,6 +137,7 @@ op_to_string(CARD8 op)
>  	/*
>  	 * Operators only available in version 0.11
>  	 */
> +#if RENDER_MAJOR > 0 || RENDER_MINOR > 10
>  	C(Multiply);
>  	C(Screen);
>  	C(Overlay);
> @@ -152,6 +153,7 @@ op_to_string(CARD8 op)
>  	C(HSLSaturation);
>  	C(HSLColor);
>  	C(HSLLuminosity);
> +#endif

Not sure what this implies ;) I'm assuming you tested it and it works.
Checking for the render version in configure.ac and failing if it's too old
wouldn't work for you I guess?

Christophe

Attachment: pgpWHBHP2ZBAK.pgp
Description: PGP signature

_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/spice-devel

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]