commit f79ac733f3e70d4b6abdc736ddc9f76c155a6cd4
parent 0f50ef072c2e590b51892c0091e7152b047e783a
Author: Bakkeby <bakkeby@gmail.com>
Date: Thu, 7 Mar 2024 21:24:31 +0100
sixel + anysize patch compatibility fix ref. #117
Diffstat:
1 file changed, 5 insertions(+), 0 deletions(-)
diff --git a/x.c b/x.c
@@ -3198,8 +3198,13 @@ xfinishdraw(void)
memset(&gcvalues, 0, sizeof(gcvalues));
gcvalues.graphics_exposures = False;
gc = XCreateGC(xw.dpy, xw.win, GCGraphicsExposures, &gcvalues);
+ #if ANYSIZE_PATCH
+ XCopyArea(xw.dpy, (Drawable)im->pixmap, xw.buf, gc, 0, 0,
+ width, height, win.hborderpx + im->x * win.cw, win.vborderpx + im->y * win.ch);
+ #else
XCopyArea(xw.dpy, (Drawable)im->pixmap, xw.buf, gc, 0, 0,
width, height, borderpx + im->x * win.cw, borderpx + im->y * win.ch);
+ #endif // ANYSIZE_PATCH
XFreeGC(xw.dpy, gc);
}
#endif // SIXEL_PATCH