# include <config.h>
#endif
-#include "ecore_x_private.h"
+#include <pixman.h>
+
+#include "ecore_xcb_private.h"
/*
xcb_rectangle_t *rects;
pixman_box16_t *boxes;
int num;
+ int i;
if (!region)
return 0;
rects[i].height = boxes[i].y2 - boxes[i].y1 + 1;
}
- xcb_set_clip_rectangles(_ecore_x_connection,
+ xcb_set_clip_rectangles(_ecore_xcb_conn,
XCB_CLIP_ORDERING_YX_BANDED,
gc,
0, 0,
}
EAPI int
-ecore_x_xregion_subtract(Ecore_X_XRegion *dst, Ecore_X_XRegion *r1, Ecore_X_XRegion *r2)
+ecore_x_xregion_subtract(Ecore_X_XRegion *dst, Ecore_X_XRegion *rm, Ecore_X_XRegion *rs)
{
return pixman_region_subtract((pixman_region16_t *)dst, (pixman_region16_t *)rm, (pixman_region16_t *)rs);
}
if (!region)
return 0;
- return pixman_region_contains_point((pixman_region16_t *)region, x, y);
+ return pixman_region_contains_point((pixman_region16_t *)region, x, y, NULL);
}
EAPI int