diff options
author | Eric Anholt <eric@anholt.net> | 2013-08-23 11:04:22 -0700 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2013-08-26 13:32:41 -0700 |
commit | 0d45bd005d89be7fee12393f5f4d986c9e4975ca (patch) | |
tree | e973f57257950de50d13da8cacd010be7d0994ba | |
parent | fa632648f9bcc97ad4b77adcf3045d56137f720d (diff) |
ephyr: Garbage collect some DOA host window clipping code.ephyr-continue-deleting
Introduced in 79782726617d4b5a4f9b376f21936d035fc870e1 but never used.
Signed-off-by: Eric Anholt <eric@anholt.net>
-rw-r--r-- | hw/kdrive/ephyr/hostx.c | 40 | ||||
-rw-r--r-- | hw/kdrive/ephyr/hostx.h | 3 |
2 files changed, 0 insertions, 43 deletions
diff --git a/hw/kdrive/ephyr/hostx.c b/hw/kdrive/ephyr/hostx.c index b189ebdf5..084bd6497 100644 --- a/hw/kdrive/ephyr/hostx.c +++ b/hw/kdrive/ephyr/hostx.c @@ -1092,46 +1092,6 @@ out: return is_ok; } -int -hostx_set_window_clipping_rectangles(int a_window, - EphyrRect * a_rects, int a_num_rects) -{ - Bool is_ok = FALSE; - int i = 0; - xcb_rectangle_t *rects = NULL; - - EPHYR_RETURN_VAL_IF_FAIL(a_rects, FALSE); - - EPHYR_LOG("enter. num rects:%d\n", a_num_rects); - - rects = calloc(a_num_rects, sizeof (xcb_rectangle_t)); - if (!rects) - goto out; - for (i = 0; i < a_num_rects; i++) { - rects[i].x = a_rects[i].x1; - rects[i].y = a_rects[i].y1; - rects[i].width = abs(a_rects[i].x2 - a_rects[i].x1); - rects[i].height = abs(a_rects[i].y2 - a_rects[i].y1); - EPHYR_LOG("clipped to rect[x:%d,y:%d,w:%d,h:%d]\n", - rects[i].x, rects[i].y, rects[i].width, rects[i].height); - } - xcb_shape_rectangles(HostX.conn, - XCB_SHAPE_SO_SET, - XCB_SHAPE_SK_CLIP, - XCB_CLIP_ORDERING_YX_BANDED, - a_window, - 0, 0, - a_num_rects, - rects); - is_ok = TRUE; - -out: - free(rects); - rects = NULL; - EPHYR_LOG("leave\n"); - return is_ok; -} - #ifdef XF86DRI typedef struct { int is_valid; diff --git a/hw/kdrive/ephyr/hostx.h b/hw/kdrive/ephyr/hostx.h index 1e19c873c..a384dad11 100644 --- a/hw/kdrive/ephyr/hostx.h +++ b/hw/kdrive/ephyr/hostx.h @@ -188,9 +188,6 @@ int hostx_set_window_geometry(int a_win, EphyrBox * a_geo); int hostx_set_window_bounding_rectangles(int a_window, EphyrRect * a_rects, int a_num_rects); -int hostx_set_window_clipping_rectangles(int a_window, - EphyrRect * a_rects, int a_num_rects); - int host_has_extension(xcb_extension_t *extension); #ifdef XF86DRI |