This is an automated email from the git hooks/post-receive script.
git pushed a commit to branch double-free
in repository legacy-imlib2.
View the commit online.
commit 3106fbd0d2403b5c98f8dec41cf7696d13dac250
Author: Kim Woelders <k...@woelders.dk>
AuthorDate: Thu Sep 21 07:40:35 2023 +0200
x11_grab: Remove some obsolete code
Should have been removed as part of 8af7975804780d1b710af3440b292386eb98e5fa.
---
src/lib/x11_grab.c | 26 --------------------------
1 file changed, 26 deletions(-)
diff --git a/src/lib/x11_grab.c b/src/lib/x11_grab.c
index fae577d..3028f80 100644
--- a/src/lib/x11_grab.c
+++ b/src/lib/x11_grab.c
@@ -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,
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.