test_grab: Debug tweak

This commit is contained in:
Kim Woelders 2023-03-06 08:36:50 +01:00
parent eae5c3bdbf
commit 82db0b0e29
1 changed files with 2 additions and 5 deletions

View File

@ -298,17 +298,14 @@ _test_grab_1(const int wsrc, const int hsrc, const int xsrc, const int ysrc,
if (mask != None && mask != 1)
XFreePixmap(xd.dpy, mask);
D("%s: %3dx%3d(%d,%d) -> %3dx%3d(%d,%d -> %d,%d)\n", __func__,
wsrc, hsrc, xsrc, ysrc, wimg, himg, xi, yi, xdst, ydst);
D("%s: %dx%d(%d,%d) -> %dx%d(%d,%d) to %dx%d(%d,%d) bw=%d\n", __func__,
wsrc, hsrc, xsrc, ysrc, wo, ho, xdst, ydst, wimg, himg, xo, yo, bw);
snprintf(buf, sizeof(buf), "%s/%s-%%d.png", IMG_GEN, xd.test);
_img_dump(im, buf);
D("%s: %3dx%3d(%d,%d -> %d,%d) in %dx%d bw=%d\n", __func__,
wo, ho, xi, yi, xo, yo, wimg, himg, bw);
dptr = imlib_image_get_data_for_reading_only();
err = 0;
for (y = 0; y < himg; y++)