[cairo-commit] src/cairo-xlib-surface.c
Chris Wilson
ickle at kemper.freedesktop.org
Thu Sep 13 09:03:22 PDT 2012
src/cairo-xlib-surface.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 97282ef51a01ae2ac3a7a8bf3ebce841a60dc907
Author: Chris Wilson <chris at chris-wilson.co.uk>
Date: Thu Sep 13 17:00:24 2012 +0100
xlib: Do not call _cairo_xlib_surface_flush directly
Use the higher level layer to be sure we detach any snapshots and other
cached data that is invalidated along with the change of Drawable.
Pointed out by the eternally wise Uli Schlachter.
Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
diff --git a/src/cairo-xlib-surface.c b/src/cairo-xlib-surface.c
index dd9fc11..58576b8 100644
--- a/src/cairo-xlib-surface.c
+++ b/src/cairo-xlib-surface.c
@@ -2067,7 +2067,7 @@ cairo_xlib_surface_set_size (cairo_surface_t *abstract_surface,
return;
}
- status = _cairo_xlib_surface_flush (abstract_surface, 0);
+ status = _cairo_surface_flush (abstract_surface, 0);
if (unlikely (status)) {
_cairo_surface_set_error (abstract_surface, status);
return;
@@ -2128,7 +2128,7 @@ cairo_xlib_surface_set_drawable (cairo_surface_t *abstract_surface,
if (surface->owns_pixmap)
return;
- status = _cairo_xlib_surface_flush (abstract_surface, 0);
+ status = _cairo_surface_flush (abstract_surface, 0);
if (unlikely (status)) {
_cairo_surface_set_error (abstract_surface, status);
return;
More information about the cairo-commit
mailing list