diff options
| author | Kristian Høgsberg <krh@bitplanet.net> | 2012-07-20 12:30:07 -0400 |
|---|---|---|
| committer | Kristian Høgsberg <krh@bitplanet.net> | 2012-07-20 12:30:07 -0400 |
| commit | 76bfd68f47c6cd8552151aa90efc4e5d074d14f9 (patch) | |
| tree | 2e60256f2fd79267beacb962169a51189d91a106 /src | |
| parent | README: Update (diff) | |
| download | wayland-76bfd68f47c6cd8552151aa90efc4e5d074d14f9.tar wayland-76bfd68f47c6cd8552151aa90efc4e5d074d14f9.tar.gz wayland-76bfd68f47c6cd8552151aa90efc4e5d074d14f9.tar.bz2 wayland-76bfd68f47c6cd8552151aa90efc4e5d074d14f9.tar.lz wayland-76bfd68f47c6cd8552151aa90efc4e5d074d14f9.tar.xz wayland-76bfd68f47c6cd8552151aa90efc4e5d074d14f9.tar.zst wayland-76bfd68f47c6cd8552151aa90efc4e5d074d14f9.zip | |
wayland-shm: Commit the width/height getters that actually compile
Diffstat (limited to 'src')
| -rw-r--r-- | src/wayland-shm.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/wayland-shm.c b/src/wayland-shm.c index 50e4297..2161a71 100644 --- a/src/wayland-shm.c +++ b/src/wayland-shm.c @@ -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; } |
