[cairo-commit] src/cairo-xcb-connection-core.c src/cairo-xcb-private.h

Uli Schlachter psychon at kemper.freedesktop.org
Thu Jan 12 12:15:07 PST 2012


 src/cairo-xcb-connection-core.c |    2 +-
 src/cairo-xcb-private.h         |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 9a199fd4031986dfba99e7d6ceb63ec7cea81cad
Author: Uli Schlachter <psychon at znc.in>
Date:   Thu Jan 12 20:31:16 2012 +0100

    xcb: Use int instead of uint16_t for rowstride
    
    Fixes negative-stride-image
    
    Signed-off-by: Uli Schlachter <psychon at znc.in>

diff --git a/src/cairo-xcb-connection-core.c b/src/cairo-xcb-connection-core.c
index fe86876..0eb2b84 100644
--- a/src/cairo-xcb-connection-core.c
+++ b/src/cairo-xcb-connection-core.c
@@ -168,7 +168,7 @@ _cairo_xcb_connection_put_subimage (cairo_xcb_connection_t *connection,
 				    uint16_t width,
 				    uint16_t height,
 				    uint16_t cpp,
-				    uint16_t stride,
+				    int stride,
 				    int16_t dst_x,
 				    int16_t dst_y,
 				    uint8_t depth,
diff --git a/src/cairo-xcb-private.h b/src/cairo-xcb-private.h
index 8d90bc6..ba9a50e 100644
--- a/src/cairo-xcb-private.h
+++ b/src/cairo-xcb-private.h
@@ -552,7 +552,7 @@ _cairo_xcb_connection_put_subimage (cairo_xcb_connection_t *connection,
 				    uint16_t width,
 				    uint16_t height,
 				    uint16_t cpp,
-				    uint16_t stride,
+				    int stride,
 				    int16_t dst_x,
 				    int16_t dst_y,
 				    uint8_t depth,


More information about the cairo-commit mailing list