From 485dd7b6e2691e7bd0016c5363c4444adc429e30 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Kristian=20H=C3=B8gsberg?= Date: Fri, 30 Mar 2012 10:24:29 -0400 Subject: [PATCH] shm: Fix stride signedness in protocol Make stride argument of wl_shm.create_buffer a signed integer. --- protocol/wayland.xml | 2 +- src/wayland-shm.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/protocol/wayland.xml b/protocol/wayland.xml index c32bc8b..5118b5b 100644 --- a/protocol/wayland.xml +++ b/protocol/wayland.xml @@ -165,7 +165,7 @@ - + diff --git a/src/wayland-shm.c b/src/wayland-shm.c index bfa4aa8..a1ad0f7 100644 --- a/src/wayland-shm.c +++ b/src/wayland-shm.c @@ -93,7 +93,7 @@ wl_shm_buffer_init(struct wl_client *client, uint32_t id, static void shm_create_buffer(struct wl_client *client, struct wl_resource *resource, uint32_t id, int fd, int32_t width, int32_t height, - uint32_t stride, uint32_t format) + int32_t stride, uint32_t format) { struct wl_shm_buffer *buffer; void *data; -- 2.7.4