[cairo-commit] src/cairo-damage.c
Chris Wilson
ickle at kemper.freedesktop.org
Sat Aug 11 11:30:31 PDT 2012
src/cairo-damage.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit d647d4f7db1f9b65f5d7f64574b1989b830aaa7c
Author: Chris Wilson <chris at chris-wilson.co.uk>
Date: Sat Aug 11 19:28:21 2012 +0100
damage: Update tail pointer after allocating new chunk
Reported and based on a patch by fmot.fics
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=53384
Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
diff --git a/src/cairo-damage.c b/src/cairo-damage.c
index 06ef9fd..61a58af 100644
--- a/src/cairo-damage.c
+++ b/src/cairo-damage.c
@@ -128,10 +128,11 @@ _cairo_damage_add_boxes(cairo_damage_t *damage,
chunk->count = count;
damage->tail->next = chunk;
- damage->remain = size - count;
+ damage->tail = chunk;
memcpy (damage->tail->base, boxes + n,
count * sizeof (cairo_box_t));
+ damage->remain = size - count;
return damage;
}
More information about the cairo-commit
mailing list