[cairo-commit] src/cairo-xlib-surface-shm.c
Chris Wilson
ickle at kemper.freedesktop.org
Tue Jan 29 15:53:08 PST 2013
src/cairo-xlib-surface-shm.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
New commits:
commit 2560c0b6577a6380ef175cf18bb804913784632c
Author: Chris Wilson <chris at chris-wilson.co.uk>
Date: Tue Jan 29 23:51:44 2013 +0000
xlib/shm: More clarification of seqno required
Everytime I read the predicate wrong, but hopefully, this time I have it
right!
Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
diff --git a/src/cairo-xlib-surface-shm.c b/src/cairo-xlib-surface-shm.c
index 8ac765e..fa7d3eb 100644
--- a/src/cairo-xlib-surface-shm.c
+++ b/src/cairo-xlib-surface-shm.c
@@ -436,7 +436,7 @@ static void send_event(cairo_xlib_display_t *display,
{
XShmCompletionEvent ev;
- if (seqno_before (seqno, display->shm->last_event))
+ if (! seqno_after (seqno, display->shm->last_event))
return;
ev.type = display->shm->event;
@@ -483,7 +483,7 @@ _cairo_xlib_shm_info_cleanup (cairo_xlib_display_t *display)
info = PQ_TOP(pq);
do {
- if (seqno_after (info->last_request, processed)) {
+ if (! seqno_passed (info->last_request, processed)) {
send_event (display, info, display->shm->last_request);
return;
}
@@ -556,7 +556,7 @@ _cairo_xlib_shm_pool_cleanup (cairo_xlib_display_t *display)
cairo_list_foreach_entry_safe (pool, next, cairo_xlib_shm_t,
&display->shm->pool, link) {
- if (seqno_before (pool->attached, processed))
+ if (! seqno_passed (pool->attached, processed))
break;
if (pool->mem.free_bytes == pool->mem.max_bytes)
More information about the cairo-commit
mailing list