aboutsummaryrefslogtreecommitdiffstats
path: root/libgnomecanvas/gnome-canvas-util.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2011-01-31 00:32:55 +0800
committerMatthew Barnes <mbarnes@redhat.com>2011-01-31 00:33:28 +0800
commit0109aa3a92b484ebb85c6481e5a8e39819b1f011 (patch)
treee7837b0a50517fc160a7b4d6d47f5c78a5505523 /libgnomecanvas/gnome-canvas-util.c
parentf25d21294158625477c529a679fd2f27fffb562c (diff)
downloadgsoc2013-evolution-0109aa3a92b484ebb85c6481e5a8e39819b1f011.tar
gsoc2013-evolution-0109aa3a92b484ebb85c6481e5a8e39819b1f011.tar.gz
gsoc2013-evolution-0109aa3a92b484ebb85c6481e5a8e39819b1f011.tar.bz2
gsoc2013-evolution-0109aa3a92b484ebb85c6481e5a8e39819b1f011.tar.lz
gsoc2013-evolution-0109aa3a92b484ebb85c6481e5a8e39819b1f011.tar.xz
gsoc2013-evolution-0109aa3a92b484ebb85c6481e5a8e39819b1f011.tar.zst
gsoc2013-evolution-0109aa3a92b484ebb85c6481e5a8e39819b1f011.zip
More whitespace cleanup.
Diffstat (limited to 'libgnomecanvas/gnome-canvas-util.c')
-rw-r--r--libgnomecanvas/gnome-canvas-util.c76
1 files changed, 38 insertions, 38 deletions
diff --git a/libgnomecanvas/gnome-canvas-util.c b/libgnomecanvas/gnome-canvas-util.c
index d05171b4e4..5ca5979442 100644
--- a/libgnomecanvas/gnome-canvas-util.c
+++ b/libgnomecanvas/gnome-canvas-util.c
@@ -94,14 +94,14 @@ gnome_canvas_update_bbox (GnomeCanvasItem *item, gint x1, gint y1, gint x2, gint
cairo_t *
gnome_canvas_cairo_create_scratch (void)
{
- cairo_surface_t *surface;
- cairo_t *cr;
+ cairo_surface_t *surface;
+ cairo_t *cr;
- surface = cairo_image_surface_create (CAIRO_FORMAT_ARGB32, 0, 0);
- cr = cairo_create (surface);
- cairo_surface_destroy (surface);
+ surface = cairo_image_surface_create (CAIRO_FORMAT_ARGB32, 0, 0);
+ cr = cairo_create (surface);
+ cairo_surface_destroy (surface);
- return cr;
+ return cr;
}
/**
@@ -119,38 +119,38 @@ void
gnome_canvas_matrix_transform_rect (const cairo_matrix_t *matrix,
double *x1, double *y1, double *x2, double *y2)
{
- double maxx, maxy, minx, miny;
- double tmpx, tmpy;
-
- tmpx = *x1;
- tmpy = *y1;
- cairo_matrix_transform_point (matrix, &tmpx, &tmpy);
- minx = maxx = tmpx;
- miny = maxy = tmpy;
-
- tmpx = *x2;
- tmpy = *y1;
- cairo_matrix_transform_point (matrix, &tmpx, &tmpy);
- minx = MIN (minx, tmpx);
- maxx = MAX (maxx, tmpx);
- miny = MIN (miny, tmpy);
- maxy = MAX (maxy, tmpy);
-
- tmpx = *x2;
- tmpy = *y2;
- cairo_matrix_transform_point (matrix, &tmpx, &tmpy);
- minx = MIN (minx, tmpx);
- maxx = MAX (maxx, tmpx);
- miny = MIN (miny, tmpy);
- maxy = MAX (maxy, tmpy);
-
- tmpx = *x1;
- tmpy = *y2;
- cairo_matrix_transform_point (matrix, &tmpx, &tmpy);
- minx = MIN (minx, tmpx);
- maxx = MAX (maxx, tmpx);
- miny = MIN (miny, tmpy);
- maxy = MAX (maxy, tmpy);
+ double maxx, maxy, minx, miny;
+ double tmpx, tmpy;
+
+ tmpx = *x1;
+ tmpy = *y1;
+ cairo_matrix_transform_point (matrix, &tmpx, &tmpy);
+ minx = maxx = tmpx;
+ miny = maxy = tmpy;
+
+ tmpx = *x2;
+ tmpy = *y1;
+ cairo_matrix_transform_point (matrix, &tmpx, &tmpy);
+ minx = MIN (minx, tmpx);
+ maxx = MAX (maxx, tmpx);
+ miny = MIN (miny, tmpy);
+ maxy = MAX (maxy, tmpy);
+
+ tmpx = *x2;
+ tmpy = *y2;
+ cairo_matrix_transform_point (matrix, &tmpx, &tmpy);
+ minx = MIN (minx, tmpx);
+ maxx = MAX (maxx, tmpx);
+ miny = MIN (miny, tmpy);
+ maxy = MAX (maxy, tmpy);
+
+ tmpx = *x1;
+ tmpy = *y2;
+ cairo_matrix_transform_point (matrix, &tmpx, &tmpy);
+ minx = MIN (minx, tmpx);
+ maxx = MAX (maxx, tmpx);
+ miny = MIN (miny, tmpy);
+ maxy = MAX (maxy, tmpy);
*x1 = minx;
*x2 = maxx;