By default, set buffer size to 0 on creation.
Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
parent
2a94274a99
commit
6e72cb0573
|
@ -18,6 +18,8 @@ e_buffer_resource_get(struct wl_resource *resource)
|
||||||
if (!(buffer = E_NEW_RAW(E_Buffer, 1)))
|
if (!(buffer = E_NEW_RAW(E_Buffer, 1)))
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
|
buffer->w = 0;
|
||||||
|
buffer->h = 0;
|
||||||
buffer->wl.resource = resource;
|
buffer->wl.resource = resource;
|
||||||
wl_signal_init(&buffer->signals.destroy);
|
wl_signal_init(&buffer->signals.destroy);
|
||||||
buffer->buffer_destroy.notify = _e_buffer_cb_destroy;
|
buffer->buffer_destroy.notify = _e_buffer_cb_destroy;
|
||||||
|
|
Loading…
Reference in New Issue