mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-11-04 13:29:51 -05:00
shm: Fix stride signedness in protocol
Make stride argument of wl_shm.create_buffer a signed integer.
This commit is contained in:
parent
4560b6b6b4
commit
485dd7b6e2
2 changed files with 2 additions and 2 deletions
|
|
@ -165,7 +165,7 @@
|
||||||
<arg name="fd" type="fd"/>
|
<arg name="fd" type="fd"/>
|
||||||
<arg name="width" type="int"/>
|
<arg name="width" type="int"/>
|
||||||
<arg name="height" type="int"/>
|
<arg name="height" type="int"/>
|
||||||
<arg name="stride" type="uint"/>
|
<arg name="stride" type="int"/>
|
||||||
<arg name="format" type="uint"/>
|
<arg name="format" type="uint"/>
|
||||||
</request>
|
</request>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -93,7 +93,7 @@ wl_shm_buffer_init(struct wl_client *client, uint32_t id,
|
||||||
static void
|
static void
|
||||||
shm_create_buffer(struct wl_client *client, struct wl_resource *resource,
|
shm_create_buffer(struct wl_client *client, struct wl_resource *resource,
|
||||||
uint32_t id, int fd, int32_t width, int32_t height,
|
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;
|
struct wl_shm_buffer *buffer;
|
||||||
void *data;
|
void *data;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue