[Spice-commits] common/sw_canvas.c common/sw_canvas.h

Alexander Larsson alexl at kemper.freedesktop.org
Wed Aug 18 07:37:11 PDT 2010


 common/sw_canvas.c |    2 +-
 common/sw_canvas.h |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

New commits:
commit eb5de022d40462c201a1aa8933f80ebdc7e0deb7
Author: Alexander Larsson <alexl at redhat.com>
Date:   Wed Aug 18 16:33:20 2010 +0200

    Stride can be negative, so don't use size_t for it

diff --git a/common/sw_canvas.c b/common/sw_canvas.c
index 78cc1e4..a4edfa2 100644
--- a/common/sw_canvas.c
+++ b/common/sw_canvas.c
@@ -1241,7 +1241,7 @@ SpiceCanvas *canvas_create(int width, int height, uint32_t format
 }
 
 SpiceCanvas *canvas_create_for_data(int width, int height, uint32_t format,
-                                    uint8_t *data, size_t stride
+                                    uint8_t *data, int stride
 #ifdef SW_CANVAS_CACHE
                            , SpiceImageCache *bits_cache
                            , SpicePaletteCache *palette_cache
diff --git a/common/sw_canvas.h b/common/sw_canvas.h
index 473bbc1..99deac8 100644
--- a/common/sw_canvas.h
+++ b/common/sw_canvas.h
@@ -39,7 +39,7 @@ SpiceCanvas *canvas_create(int width, int height, uint32_t format
                            , SpiceZlibDecoder *zlib_decoder
                            );
 
-SpiceCanvas *canvas_create_for_data(int width, int height, uint32_t format, uint8_t *data, size_t stride
+SpiceCanvas *canvas_create_for_data(int width, int height, uint32_t format, uint8_t *data, int stride
 #ifdef SW_CANVAS_CACHE
                            , SpiceImageCache *bits_cache
                            , SpicePaletteCache *palette_cache


More information about the Spice-commits mailing list