[gegl] sampler.c: cosmetic
- From: Nicolas Robidoux <nrobidoux src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] sampler.c: cosmetic
- Date: Thu, 6 Dec 2012 19:58:15 +0000 (UTC)
commit 15f89e3d8f6617d91a884ba99ae5e1ad379363d3
Author: Nicolas Robidoux <nrobidoux git gnome org>
Date: Thu Dec 6 14:20:29 2012 -0500
sampler.c: cosmetic
gegl/buffer/gegl-sampler.c | 45 +++++++++++++++++++++++++------------------
1 files changed, 26 insertions(+), 19 deletions(-)
---
diff --git a/gegl/buffer/gegl-sampler.c b/gegl/buffer/gegl-sampler.c
index 0c5ca77..4fbfccf 100644
--- a/gegl/buffer/gegl-sampler.c
+++ b/gegl/buffer/gegl-sampler.c
@@ -226,17 +226,17 @@ gegl_sampler_get_ptr (GeglSampler *const sampler,
g_assert (sampler->context_rect[0].width <= maximum_width_and_height);
g_assert (sampler->context_rect[0].height <= maximum_width_and_height);
- if (( sampler->sampler_buffer[0] == NULL )
+ if ((sampler->sampler_buffer[0] == NULL)
||
- ( x + sampler->context_rect[0].x < sampler->sampler_rectangle[0].x )
+ (x + sampler->context_rect[0].x < sampler->sampler_rectangle[0].x)
||
- ( y + sampler->context_rect[0].y < sampler->sampler_rectangle[0].y )
+ (y + sampler->context_rect[0].y < sampler->sampler_rectangle[0].y)
||
- ( x + sampler->context_rect[0].x + sampler->context_rect[0].width
- > sampler->sampler_rectangle[0].x + sampler->sampler_rectangle[0].width )
+ (x + sampler->context_rect[0].x + sampler->context_rect[0].width >
+ sampler->sampler_rectangle[0].x + sampler->sampler_rectangle[0].width)
||
- ( y + sampler->context_rect[0].y + sampler->context_rect[0].height
- > sampler->sampler_rectangle[0].y + sampler->sampler_rectangle[0].height ))
+ (y + sampler->context_rect[0].y + sampler->context_rect[0].height >
+ sampler->sampler_rectangle[0].y + sampler->sampler_rectangle[0].height))
{
/*
* fetch_rectangle will become the value of
@@ -319,15 +319,17 @@ gegl_sampler_get_from_buffer (GeglSampler *const sampler,
g_assert (sampler->context_rect[0].width <= maximum_width_and_height);
g_assert (sampler->context_rect[0].height <= maximum_width_and_height);
- if (( sampler->sampler_buffer[0] == NULL )
+ if ((sampler->sampler_buffer[0] == NULL)
||
- ( x < sampler->sampler_rectangle[0].x )
+ (x < sampler->sampler_rectangle[0].x)
||
- ( y < sampler->sampler_rectangle[0].y )
+ (y < sampler->sampler_rectangle[0].y)
||
- ( x >= sampler->sampler_rectangle[0].x + sampler->sampler_rectangle[0].width )
+ (x >=
+ sampler->sampler_rectangle[0].x + sampler->sampler_rectangle[0].width)
||
- ( y >= sampler->sampler_rectangle[0].y + sampler->sampler_rectangle[0].height ))
+ (y >=
+ sampler->sampler_rectangle[0].y + sampler->sampler_rectangle[0].height))
{
/*
* fetch_rectangle will become the value of
@@ -399,17 +401,22 @@ gegl_sampler_get_from_mipmap (GeglSampler *const sampler,
g_assert (sampler->context_rect[level].height <= maximum_width_and_height);
g_assert (level >= 0 && level < GEGL_SAMPLER_MIPMAP_LEVELS);
- if (( sampler->sampler_buffer[level] == NULL )
+ if ((sampler->sampler_buffer[level] == NULL)
||
- ( x + sampler->context_rect[level].x < sampler->sampler_rectangle[level].x )
+ (x + sampler->context_rect[level].x <
+ sampler->sampler_rectangle[level].x)
||
- ( y + sampler->context_rect[level].y < sampler->sampler_rectangle[level].y )
+ (y + sampler->context_rect[level].y <
+ sampler->sampler_rectangle[level].y)
||
- ( x + sampler->context_rect[level].x + sampler->context_rect[level].width
- > sampler->sampler_rectangle[level].x + sampler->sampler_rectangle[level].width )
+ (x + sampler->context_rect[level].x + sampler->context_rect[level].width >
+ sampler->sampler_rectangle[level].x +
+ sampler->sampler_rectangle[level].width)
||
- ( y + sampler->context_rect[level].y + sampler->context_rect[level].height
- > sampler->sampler_rectangle[level].y + sampler->sampler_rectangle[level].height ))
+ (y + sampler->context_rect[level].y +
+ sampler->context_rect[level].height >
+ sampler->sampler_rectangle[level].y +
+ sampler->sampler_rectangle[level].height))
{
/*
* fetch_rectangle will become the value of
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]