fix e_pixmap compile for non-wayland usecase
authorChris Michael <cp.michael@samsung.com>
Tue, 10 Feb 2015 17:41:27 +0000 (12:41 -0500)
committerChris Michael <cp.michael@samsung.com>
Tue, 10 Feb 2015 17:41:27 +0000 (12:41 -0500)
pixmap->border is only defined if we have some wayland support. Not
used in X11.

Signed-off-by: Chris Michael <cp.michael@samsung.com>
src/bin/e_pixmap.c

index 0587554b003748763003a0e6e1c487c487dec9a9..c2dbe6fad2609af2bc941d060ce12604e9a02366 100644 (file)
@@ -892,15 +892,29 @@ EAPI void
 e_pixmap_image_border_set(E_Pixmap *cp, int l, int r, int t, int b)
 {
    EINA_SAFETY_ON_NULL_RETURN(cp);
+#if defined(HAVE_WAYLAND_CLIENTS) || defined(HAVE_WAYLAND_ONLY)
    EINA_RECTANGLE_SET(&cp->border, t, b, l, r);
+#else
+   (void)l;
+   (void)r;
+   (void)t;
+   (void)b;
+#endif
 }
 
 EAPI void
 e_pixmap_image_border_get(E_Pixmap *cp, int *l, int *r, int *t, int *b)
 {
    EINA_SAFETY_ON_NULL_RETURN(cp);
+#if defined(HAVE_WAYLAND_CLIENTS) || defined(HAVE_WAYLAND_ONLY)
    if (t) *t = cp->border.x;
    if (b) *b = cp->border.y;
    if (l) *l = cp->border.w;
    if (r) *r = cp->border.h;
+#else
+   if (t) *t = 0;
+   if (b) *b = 0;
+   if (l) *l = 0;
+   if (r) *r = 0;
+#endif
 }