shm: Fix stride signedness in protocol
authorKristian Høgsberg <krh@bitplanet.net>
Fri, 30 Mar 2012 14:24:29 +0000 (10:24 -0400)
committerKristian Høgsberg <krh@bitplanet.net>
Fri, 30 Mar 2012 14:24:29 +0000 (10:24 -0400)
Make stride argument of wl_shm.create_buffer a signed integer.

protocol/wayland.xml
src/wayland-shm.c

index c32bc8b..5118b5b 100644 (file)
       <arg name="fd" type="fd"/>
       <arg name="width" type="int"/>
       <arg name="height" type="int"/>
-      <arg name="stride" type="uint"/>
+      <arg name="stride" type="int"/>
       <arg name="format" type="uint"/>
     </request>
 
index bfa4aa8..a1ad0f7 100644 (file)
@@ -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;