forked from enlightenment/enlightenment
fix e_pixmap compile for non-wayland usecase
pixmap->border is only defined if we have some wayland support. Not used in X11. Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
parent
7e422ed0c2
commit
1c5e71bffc
|
@ -892,15 +892,29 @@ EAPI void
|
||||||
e_pixmap_image_border_set(E_Pixmap *cp, int l, int r, int t, int b)
|
e_pixmap_image_border_set(E_Pixmap *cp, int l, int r, int t, int b)
|
||||||
{
|
{
|
||||||
EINA_SAFETY_ON_NULL_RETURN(cp);
|
EINA_SAFETY_ON_NULL_RETURN(cp);
|
||||||
|
#if defined(HAVE_WAYLAND_CLIENTS) || defined(HAVE_WAYLAND_ONLY)
|
||||||
EINA_RECTANGLE_SET(&cp->border, t, b, l, r);
|
EINA_RECTANGLE_SET(&cp->border, t, b, l, r);
|
||||||
|
#else
|
||||||
|
(void)l;
|
||||||
|
(void)r;
|
||||||
|
(void)t;
|
||||||
|
(void)b;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
EAPI void
|
EAPI void
|
||||||
e_pixmap_image_border_get(E_Pixmap *cp, int *l, int *r, int *t, int *b)
|
e_pixmap_image_border_get(E_Pixmap *cp, int *l, int *r, int *t, int *b)
|
||||||
{
|
{
|
||||||
EINA_SAFETY_ON_NULL_RETURN(cp);
|
EINA_SAFETY_ON_NULL_RETURN(cp);
|
||||||
|
#if defined(HAVE_WAYLAND_CLIENTS) || defined(HAVE_WAYLAND_ONLY)
|
||||||
if (t) *t = cp->border.x;
|
if (t) *t = cp->border.x;
|
||||||
if (b) *b = cp->border.y;
|
if (b) *b = cp->border.y;
|
||||||
if (l) *l = cp->border.w;
|
if (l) *l = cp->border.w;
|
||||||
if (r) *r = cp->border.h;
|
if (r) *r = cp->border.h;
|
||||||
|
#else
|
||||||
|
if (t) *t = 0;
|
||||||
|
if (b) *b = 0;
|
||||||
|
if (l) *l = 0;
|
||||||
|
if (r) *r = 0;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue