[PATCH] protocol: Use signed int for scale values

Kristian Høgsberg hoegsberg at gmail.com
Tue May 28 13:07:54 PDT 2013


On Fri, May 24, 2013 at 01:08:41PM +0200, alexl at redhat.com wrote:
> From: Alexander Larsson <alexl at redhat.com>
> 
> We usually use signed ints for things like this, to avoid
> issues C sign coersion.

Thanks, got this and the weston patches.

Kristian

> ---
>  protocol/wayland.xml | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/protocol/wayland.xml b/protocol/wayland.xml
> index acfb140..0c7c053 100644
> --- a/protocol/wayland.xml
> +++ b/protocol/wayland.xml
> @@ -1155,7 +1155,7 @@
>  	a buffer that is larger (by a factor of scale in each dimension)
>  	than the desired surface size.
>        </description>
> -      <arg name="scale" type="uint"/>
> +      <arg name="scale" type="int"/>
>      </request>
>     </interface>
>  
> @@ -1652,7 +1652,7 @@
>  	avoid scaling the surface, and the client can supply
>  	a higher detail image.
>        </description>
> -      <arg name="factor" type="uint" summary="scaling factor of output"/>
> +      <arg name="factor" type="int" summary="scaling factor of output"/>
>      </event>
>    </interface>
>  
> -- 
> 1.8.1.4
> 
> _______________________________________________
> wayland-devel mailing list
> wayland-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/wayland-devel


More information about the wayland-devel mailing list