summaryrefslogtreecommitdiff
path: root/src/modules/evas/engines/wayland_shm/evas_shm.c
diff options
context:
space:
mode:
authorDerek Foreman <derekf@osg.samsung.com>2016-04-11 10:35:15 -0500
committerMike Blumenkrantz <zmike@osg.samsung.com>2016-04-19 15:11:09 -0400
commit7cd26930756ddd425c4fb7c10db62037a4d6a1e8 (patch)
tree3e39fe00b31cfb1e9d5bfa485dbfe87cfea0c906 /src/modules/evas/engines/wayland_shm/evas_shm.c
parentf59c52520de6007990e04dbc5572353a326ada29 (diff)
wayland_shm: Drop ifdefs around damage_buffer
We now depend on wayland 1.10.0 so damage_buffer is always going to be present in the headers - we no longer need ifdef checks.
Diffstat (limited to 'src/modules/evas/engines/wayland_shm/evas_shm.c')
-rw-r--r--src/modules/evas/engines/wayland_shm/evas_shm.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/modules/evas/engines/wayland_shm/evas_shm.c b/src/modules/evas/engines/wayland_shm/evas_shm.c
index 22a277805e..3ea3da971f 100644
--- a/src/modules/evas/engines/wayland_shm/evas_shm.c
+++ b/src/modules/evas/engines/wayland_shm/evas_shm.c
@@ -606,23 +606,19 @@ _evas_shm_surface_post(Surface *s, Eina_Rectangle *rects, unsigned int count)
606 unsigned int k = 0; 606 unsigned int k = 0;
607 607
608 for (; k < count; k++) 608 for (; k < count; k++)
609#ifdef WL_SURFACE_DAMAGE_BUFFER_SINCE_VERSION
610 if (surface->compositor_version >= WL_SURFACE_DAMAGE_BUFFER_SINCE_VERSION) 609 if (surface->compositor_version >= WL_SURFACE_DAMAGE_BUFFER_SINCE_VERSION)
611 wl_surface_damage_buffer(surface->surface, 610 wl_surface_damage_buffer(surface->surface,
612 rects[k].x, rects[k].y, 611 rects[k].x, rects[k].y,
613 rects[k].w, rects[k].h); 612 rects[k].w, rects[k].h);
614 else 613 else
615#endif
616 wl_surface_damage(surface->surface, 614 wl_surface_damage(surface->surface,
617 rects[k].x, rects[k].y, 615 rects[k].x, rects[k].y,
618 rects[k].w, rects[k].h); 616 rects[k].w, rects[k].h);
619 } 617 }
620 else 618 else
621#ifdef WL_SURFACE_DAMAGE_BUFFER_SINCE_VERSION
622 if (surface->compositor_version >= WL_SURFACE_DAMAGE_BUFFER_SINCE_VERSION) 619 if (surface->compositor_version >= WL_SURFACE_DAMAGE_BUFFER_SINCE_VERSION)
623 wl_surface_damage_buffer(surface->surface, 0, 0, leaf->w, leaf->h); 620 wl_surface_damage_buffer(surface->surface, 0, 0, leaf->w, leaf->h);
624 else 621 else
625#endif
626 wl_surface_damage(surface->surface, 0, 0, leaf->w, leaf->h); 622 wl_surface_damage(surface->surface, 0, 0, leaf->w, leaf->h);
627 623
628 /* frame_cb = wl_surface_frame(surface->surface); */ 624 /* frame_cb = wl_surface_frame(surface->surface); */