[PATCH weston 1/5] compositor: When clipping pointer motions, don't loose precision

Daniel Stone daniel at fooishbar.org
Wed May 9 18:07:04 PDT 2012


Hi,

On 10 May 2012 00:12, Kristian Høgsberg <krh at bitplanet.net> wrote:
> We just need min/max_x/y to be wl_fixed_t and then we need
>
> #define WL_FIXED_MAX INT32_MAX
> #define WL_FIXED_MIN INT32_MIN

Err? An int32_t can never be greater than INT32_MAX nor less than
INT32_MIN - it just overflows - so I'm not sure what this check would
actually gain us.

Cheers,
Daniel


More information about the wayland-devel mailing list