[cairo-commit] src/cairo-xcb-surface.c
Uli Schlachter
psychon at kemper.freedesktop.org
Mon Apr 2 12:03:36 PDT 2012
src/cairo-xcb-surface.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit c77112c5464d7ff21052527f82f4d729cc509291
Author: Uli Schlachter <psychon at znc.in>
Date: Mon Apr 2 20:43:00 2012 +0200
xcb: Fix SHM in _get_image()
Commit 2283ab9 introduced a logic error. Instead of falling back to the non-SHM
path when getting the image via SHM failed, we now did the fallback when getting
the image via SHM worked (which means that the SHM operation was a waste of
time).
Signed-off-by: Uli Schlachter <psychon at znc.in>
diff --git a/src/cairo-xcb-surface.c b/src/cairo-xcb-surface.c
index fff4f52..6bedbda 100644
--- a/src/cairo-xcb-surface.c
+++ b/src/cairo-xcb-surface.c
@@ -367,7 +367,7 @@ _get_image (cairo_xcb_surface_t *surface,
if (use_shm) {
image = _get_shm_image (surface, x, y, width, height);
if (image) {
- if (image->status) {
+ if (image->status == CAIRO_STATUS_SUCCESS) {
_cairo_xcb_connection_release (connection);
return image;
}
More information about the cairo-commit
mailing list