summaryrefslogtreecommitdiffstats
path: root/common/sw_canvas.c
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2010-08-18 16:33:20 +0200
committerAlexander Larsson <alexl@redhat.com>2010-08-18 16:33:20 +0200
commiteb5de022d40462c201a1aa8933f80ebdc7e0deb7 (patch)
treefbdf4d1ecee781ff1b61d16e3b2ffe55e8a1eb5f /common/sw_canvas.c
parent6e454248cc759bd4a32f0ff767de023836f8417d (diff)
downloadspice-eb5de022d40462c201a1aa8933f80ebdc7e0deb7.tar.gz
spice-eb5de022d40462c201a1aa8933f80ebdc7e0deb7.tar.xz
spice-eb5de022d40462c201a1aa8933f80ebdc7e0deb7.zip
Stride can be negative, so don't use size_t for it
Diffstat (limited to 'common/sw_canvas.c')
-rw-r--r--common/sw_canvas.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/sw_canvas.c b/common/sw_canvas.c
index 78cc1e40..a4edfa2a 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