diff options
author | MinJeong Kim <minjjj.kim@samsung.com> | 2014-07-10 09:38:30 -0400 |
---|---|---|
committer | Mike Blumenkrantz <zmike@osg.samsung.com> | 2014-08-04 18:01:22 -0400 |
commit | 87e94e603ad38fc6f4045dcfca5bd564ff3c9dc9 (patch) | |
tree | 6b5e05183fdbbc4210de3b5aa668d621c5820540 | |
parent | b5b7b3d3c60b34c21cb28127a89c934f8bac7c34 (diff) | |
download | enlightenment-87e94e603ad38fc6f4045dcfca5bd564ff3c9dc9.tar.gz |
Fixed trying to create damage area with 0x0 size
Summary:
This revision fixed failure to create damage area using Eina_Tiler on surface damage callback.
It was caused by trying to create Eina_Tiler with 0x0 size which is from size of E_Client.
Test Plan:
1. Run elementary_test.
2. Select one of the test apps.(no more magic fail message)
Reviewers: zmike, devilhorns
Reviewed By: devilhorns
Subscribers: cedric, gwanglim
Differential Revision: https://phab.enlightenment.org/D1171
-rw-r--r-- | src/bin/e_comp_wl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/e_comp_wl.c b/src/bin/e_comp_wl.c index 83614c8102..46abd18631 100644 --- a/src/bin/e_comp_wl.c +++ b/src/bin/e_comp_wl.c @@ -195,7 +195,7 @@ _e_comp_wl_surface_cb_damage(struct wl_client *client EINA_UNUSED, struct wl_res if ((!ec) || (e_object_is_del(E_OBJECT(ec)))) return; if (!ec->wl_comp_data) return; - tmp = eina_tiler_new(ec->w, ec->h); + tmp = eina_tiler_new(ec->w ?: w, ec->h ?: h); eina_tiler_tile_size_set(tmp, 1, 1); eina_tiler_rect_add(tmp, &(Eina_Rectangle){x, y, w, h}); |