forked from enlightenment/efl
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.
This commit is contained in:
parent
f59c52520d
commit
7cd2693075
|
@ -606,23 +606,19 @@ _evas_shm_surface_post(Surface *s, Eina_Rectangle *rects, unsigned int count)
|
||||||
unsigned int k = 0;
|
unsigned int k = 0;
|
||||||
|
|
||||||
for (; k < count; k++)
|
for (; k < count; k++)
|
||||||
#ifdef WL_SURFACE_DAMAGE_BUFFER_SINCE_VERSION
|
|
||||||
if (surface->compositor_version >= WL_SURFACE_DAMAGE_BUFFER_SINCE_VERSION)
|
if (surface->compositor_version >= WL_SURFACE_DAMAGE_BUFFER_SINCE_VERSION)
|
||||||
wl_surface_damage_buffer(surface->surface,
|
wl_surface_damage_buffer(surface->surface,
|
||||||
rects[k].x, rects[k].y,
|
rects[k].x, rects[k].y,
|
||||||
rects[k].w, rects[k].h);
|
rects[k].w, rects[k].h);
|
||||||
else
|
else
|
||||||
#endif
|
|
||||||
wl_surface_damage(surface->surface,
|
wl_surface_damage(surface->surface,
|
||||||
rects[k].x, rects[k].y,
|
rects[k].x, rects[k].y,
|
||||||
rects[k].w, rects[k].h);
|
rects[k].w, rects[k].h);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
#ifdef WL_SURFACE_DAMAGE_BUFFER_SINCE_VERSION
|
|
||||||
if (surface->compositor_version >= WL_SURFACE_DAMAGE_BUFFER_SINCE_VERSION)
|
if (surface->compositor_version >= WL_SURFACE_DAMAGE_BUFFER_SINCE_VERSION)
|
||||||
wl_surface_damage_buffer(surface->surface, 0, 0, leaf->w, leaf->h);
|
wl_surface_damage_buffer(surface->surface, 0, 0, leaf->w, leaf->h);
|
||||||
else
|
else
|
||||||
#endif
|
|
||||||
wl_surface_damage(surface->surface, 0, 0, leaf->w, leaf->h);
|
wl_surface_damage(surface->surface, 0, 0, leaf->w, leaf->h);
|
||||||
|
|
||||||
/* frame_cb = wl_surface_frame(surface->surface); */
|
/* frame_cb = wl_surface_frame(surface->surface); */
|
||||||
|
|
Loading…
Reference in New Issue