[gegl] buffer: Slight code cleanup.
- From: Michael Henning <mhenning src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] buffer: Slight code cleanup.
- Date: Thu, 19 Jun 2014 14:18:51 +0000 (UTC)
commit 15a30be244965144a86ca2d2f805342a54d13835
Author: Michael Henning <drawoc darkrefraction com>
Date: Thu Jun 19 10:17:46 2014 -0400
buffer: Slight code cleanup.
gegl/buffer/gegl-buffer-access.c | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/gegl/buffer/gegl-buffer-access.c b/gegl/buffer/gegl-buffer-access.c
index 5158254..5e26512 100644
--- a/gegl/buffer/gegl-buffer-access.c
+++ b/gegl/buffer/gegl-buffer-access.c
@@ -235,7 +235,7 @@ __gegl_buffer_set_pixel (GeglBuffer *buffer,
enum _GeglBufferSetFlag {
GEGL_BUFFER_SET_FLAG_FAST = 0,
GEGL_BUFFER_SET_FLAG_LOCK = 1<<0,
- GEGL_BUFFER_SET_FLAG_NOTIFY = 1<<2,
+ GEGL_BUFFER_SET_FLAG_NOTIFY = 1<<1,
GEGL_BUFFER_SET_FLAG_FULL = GEGL_BUFFER_SET_FLAG_LOCK |
GEGL_BUFFER_SET_FLAG_NOTIFY
};
@@ -273,15 +273,14 @@ _gegl_buffer_set_pixel (GeglBuffer *buffer,
break;
case GEGL_BUFFER_SET_FLAG_NOTIFY:
__gegl_buffer_set_pixel (buffer, x, y, format, data);
- if (flags & GEGL_BUFFER_SET_FLAG_NOTIFY)
- gegl_buffer_emit_changed_signal(buffer, &rect);
+ gegl_buffer_emit_changed_signal (buffer, &rect);
break;
case GEGL_BUFFER_SET_FLAG_LOCK|GEGL_BUFFER_SET_FLAG_NOTIFY:
default:
gegl_buffer_lock (buffer);
__gegl_buffer_set_pixel (buffer, x, y, format, data);
gegl_buffer_unlock (buffer);
- gegl_buffer_emit_changed_signal(buffer, &rect);
+ gegl_buffer_emit_changed_signal (buffer, &rect);
break;
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]