diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2010-06-20 18:56:06 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2010-06-20 20:06:19 +0800 |
commit | 5d0878967ee21a039ef599222b1cf3eb606354d4 (patch) | |
tree | 790cfcbf63fea7292740f182dd612ab20244f6e8 /libart_lgpl/art_rect.c | |
parent | f5f2132d60cdd1884c6343f759aadfd38a159e04 (diff) | |
download | gsoc2013-evolution-5d0878967ee21a039ef599222b1cf3eb606354d4.tar gsoc2013-evolution-5d0878967ee21a039ef599222b1cf3eb606354d4.tar.gz gsoc2013-evolution-5d0878967ee21a039ef599222b1cf3eb606354d4.tar.bz2 gsoc2013-evolution-5d0878967ee21a039ef599222b1cf3eb606354d4.tar.lz gsoc2013-evolution-5d0878967ee21a039ef599222b1cf3eb606354d4.tar.xz gsoc2013-evolution-5d0878967ee21a039ef599222b1cf3eb606354d4.tar.zst gsoc2013-evolution-5d0878967ee21a039ef599222b1cf3eb606354d4.zip |
Coding style and whitespace cleanup.
Diffstat (limited to 'libart_lgpl/art_rect.c')
-rw-r--r-- | libart_lgpl/art_rect.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/libart_lgpl/art_rect.c b/libart_lgpl/art_rect.c index bd1cd6e229..ec53d2d70f 100644 --- a/libart_lgpl/art_rect.c +++ b/libart_lgpl/art_rect.c @@ -54,7 +54,7 @@ art_irect_intersect (ArtIRect *dest, const ArtIRect *src1, const ArtIRect *src2) * * Return value: TRUE if @src is an empty rectangle, FALSE otherwise. **/ -int +gint art_irect_empty (const ArtIRect *src) { return (src->x1 <= src->x0 || src->y1 <= src->y0); } @@ -102,7 +102,7 @@ art_drect_union (ArtDRect *dest, const ArtDRect *src1, const ArtDRect *src2) { * * Return value: TRUE if @src is an empty rectangle, FALSE otherwise. **/ -int +gint art_drect_empty (const ArtDRect *src) { return (src->x1 <= src->x0 || src->y1 <= src->y0); } @@ -119,10 +119,12 @@ art_drect_empty (const ArtDRect *src) { * is a conservative approximation. **/ void -art_drect_affine_transform (ArtDRect *dst, const ArtDRect *src, const double matrix[6]) +art_drect_affine_transform (ArtDRect *dst, + const ArtDRect *src, + const gdouble matrix[6]) { - double x00, y00, x10, y10; - double x01, y01, x11, y11; + gdouble x00, y00, x10, y10; + gdouble x01, y01, x11, y11; x00 = src->x0 * matrix[0] + src->y0 * matrix[2] + matrix[4]; y00 = src->x0 * matrix[1] + src->y0 * matrix[3] + matrix[5]; |