mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-11-01 22:58:40 -04:00
wayland-shm: Commit the width/height getters that actually compile
This commit is contained in:
parent
0b4ed5fe72
commit
76bfd68f47
1 changed files with 4 additions and 4 deletions
|
|
@ -292,18 +292,18 @@ wl_shm_buffer_get_format(struct wl_buffer *buffer_base)
|
|||
return buffer->format;
|
||||
}
|
||||
|
||||
WL_EXPORT uint32_t
|
||||
WL_EXPORT int32_t
|
||||
wl_shm_buffer_get_width(struct wl_buffer *buffer_base)
|
||||
{
|
||||
struct wl_shm_buffer *buffer = (struct wl_shm_buffer *) buffer_base;
|
||||
|
||||
return buffer->base.width;
|
||||
return buffer->buffer.width;
|
||||
}
|
||||
|
||||
WL_EXPORT uint32_t
|
||||
WL_EXPORT int32_t
|
||||
wl_shm_buffer_get_height(struct wl_buffer *buffer_base)
|
||||
{
|
||||
struct wl_shm_buffer *buffer = (struct wl_shm_buffer *) buffer_base;
|
||||
|
||||
return buffer->base.height;
|
||||
return buffer->buffer.height;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue