x11_grab: Remove some obsolete code
Should have been removed as part of 8af7975804
.
This commit is contained in:
parent
45d58cc268
commit
3106fbd0d2
|
@ -891,35 +891,9 @@ __imlib_GrabDrawableScaledToRGBA(const ImlibContextX11 * x11, uint32_t * data,
|
|||
}
|
||||
else
|
||||
{
|
||||
XWindowAttributes ratt;
|
||||
Window cret;
|
||||
|
||||
if ((xatt.map_state != IsViewable) && (xatt.backing_store == NotUseful))
|
||||
return 1;
|
||||
|
||||
/* Clip source to screen */
|
||||
XGetWindowAttributes(x11->dpy, xatt.root, &ratt);
|
||||
XTranslateCoordinates(x11->dpy, draw, xatt.root,
|
||||
0, 0, &xatt.x, &xatt.y, &cret);
|
||||
|
||||
#if 0
|
||||
if (xatt.x + x_src < 0)
|
||||
{
|
||||
width += xatt.x + x_src;
|
||||
x_src = -xatt.x;
|
||||
}
|
||||
if (xatt.x + x_src + width > ratt.width)
|
||||
width = ratt.width - (xatt.x + x_src);
|
||||
|
||||
if (xatt.y + y_src < 0)
|
||||
{
|
||||
height += xatt.y + y_src;
|
||||
y_src = -xatt.y;
|
||||
}
|
||||
if (xatt.y + y_src + height > ratt.height)
|
||||
height = ratt.height - (xatt.y + y_src);
|
||||
#endif
|
||||
|
||||
if (*pdomask && mask == None)
|
||||
{
|
||||
mask = _WindowGetShapeMask(x11->dpy, draw,
|
||||
|
|
Loading…
Reference in New Issue