[PATCH] glamor: Fix up indentation
Alex Deucher
alexdeucher at gmail.com
Mon Feb 23 09:18:28 PST 2015
On Mon, Feb 23, 2015 at 11:58 AM, Adam Jackson <ajax at redhat.com> wrote:
> Signed-off-by: Adam Jackson <ajax at redhat.com>
Reviewed-by: Alex Deucher <alexander.deucher at amd.com>
> ---
> glamor/glamor_largepixmap.c | 14 +++++++-------
> 1 file changed, 7 insertions(+), 7 deletions(-)
>
> diff --git a/glamor/glamor_largepixmap.c b/glamor/glamor_largepixmap.c
> index 9b24584..88ea899 100644
> --- a/glamor/glamor_largepixmap.c
> +++ b/glamor/glamor_largepixmap.c
> @@ -920,10 +920,10 @@ glamor_get_transform_block_size(struct pixman_transform *transform,
> return TRUE;
> }
>
> -#define VECTOR_FROM_POINT(p, x, y) \
> +#define VECTOR_FROM_POINT(p, x, y) do {\
> p.v[0] = x; \
> p.v[1] = y; \
> - p.v[2] = 1.0;
> + p.v[2] = 1.0; } while (0)
> void
> glamor_get_transform_extent_from_box(struct pixman_box32 *box,
> struct pixman_transform *transform)
> @@ -933,12 +933,12 @@ glamor_get_transform_extent_from_box(struct pixman_box32 *box,
>
> struct pixman_f_transform ftransform;
>
> - VECTOR_FROM_POINT(p0, box->x1, box->y1)
> - VECTOR_FROM_POINT(p1, box->x2, box->y1)
> - VECTOR_FROM_POINT(p2, box->x2, box->y2)
> - VECTOR_FROM_POINT(p3, box->x1, box->y2)
> + VECTOR_FROM_POINT(p0, box->x1, box->y1);
> + VECTOR_FROM_POINT(p1, box->x2, box->y1);
> + VECTOR_FROM_POINT(p2, box->x2, box->y2);
> + VECTOR_FROM_POINT(p3, box->x1, box->y2);
>
> - pixman_f_transform_from_pixman_transform(&ftransform, transform);
> + pixman_f_transform_from_pixman_transform(&ftransform, transform);
> pixman_f_transform_point(&ftransform, &p0);
> pixman_f_transform_point(&ftransform, &p1);
> pixman_f_transform_point(&ftransform, &p2);
> --
> 1.9.3
>
> _______________________________________________
> xorg-devel at lists.x.org: X.Org development
> Archives: http://lists.x.org/archives/xorg-devel
> Info: http://lists.x.org/mailman/listinfo/xorg-devel
More information about the xorg-devel
mailing list