forked from AuroraMiddleware/gtk
Revert "Remove _gdk_region_new_from_yxbanded_rects()"
This reverts commit dde9cf2882
.
This commit is contained in:
parent
fd20ac0751
commit
863853ec5f
@ -664,6 +664,7 @@ GdkWindow *_gdk_window_get_input_window_for_event (GdkWindow *native_window,
|
||||
GdkEventType event_type,
|
||||
int x, int y,
|
||||
gulong serial);
|
||||
GdkRegion *_gdk_region_new_from_yxbanded_rects (GdkRectangle *rects, int n_rects);
|
||||
|
||||
/*****************************
|
||||
* offscreen window routines *
|
||||
|
@ -17,6 +17,14 @@ gdk_region_new (void)
|
||||
return cairo_region_create ();
|
||||
}
|
||||
|
||||
GdkRegion *
|
||||
_gdk_region_new_from_yxbanded_rects (GdkRectangle *rects,
|
||||
int num_rects)
|
||||
{
|
||||
return cairo_region_create_rectangles ((cairo_rectangle_int_t *) rects, num_rects);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* gdk_region_rectangle:
|
||||
* @rectangle: a #GdkRectangle
|
||||
|
@ -4632,7 +4632,7 @@ _xwindow_get_shape (Display *xdisplay,
|
||||
}
|
||||
XFree (xrl);
|
||||
|
||||
shape = cairo_region_create_rectangles (rl, rn);
|
||||
shape = _gdk_region_new_from_yxbanded_rects (rl, rn);
|
||||
g_free (rl);
|
||||
|
||||
return shape;
|
||||
|
Loading…
Reference in New Issue
Block a user