[gegl] buffer: need to use fmod on the offset which are double
- From: Ãyvind KolÃs <ok src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] buffer: need to use fmod on the offset which are double
- Date: Fri, 6 Apr 2012 21:50:32 +0000 (UTC)
commit 20dd976dbe5a541b5449c8ebc9a770be3ac6583b
Author: Ãyvind KolÃs <pippin gimp org>
Date: Fri Apr 6 23:50:26 2012 +0200
buffer: need to use fmod on the offset which are double
gegl/buffer/gegl-buffer-access.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gegl/buffer/gegl-buffer-access.c b/gegl/buffer/gegl-buffer-access.c
index 2bbc007..1fe700b 100644
--- a/gegl/buffer/gegl-buffer-access.c
+++ b/gegl/buffer/gegl-buffer-access.c
@@ -1229,8 +1229,8 @@ gegl_buffer_set_pattern (GeglBuffer *buffer,
while (y_offset < 0) y_offset += pat_height;
while (x_offset < 0) x_offset += pat_width;
- x_offset %= pat_width;
- y_offset %= pat_height;
+ x_offset = fmod (x_offset, pat_width);
+ y_offset = fmod (y_offset, pat_height);
src_rect.width = dst_rect.width = pat_width;
src_rect.height = dst_rect.height = pat_height;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]