From 7099c6ec7345e46a4baa101342ae9e5a31556aaf Mon Sep 17 00:00:00 2001 From: bakkeby Date: Wed, 15 Dec 2021 11:23:59 +0100 Subject: [PATCH] sixel: adding anysize patch compatibility ref. #45 --- x.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/x.c b/x.c index eb0dd30..52c7348 100644 --- a/x.c +++ b/x.c @@ -2738,7 +2738,11 @@ xfinishdraw(void) memset(&gcvalues, 0, sizeof(gcvalues)); gc = XCreateGC(xw.dpy, xw.win, 0, &gcvalues); + #if ANYSIZE_PATCH + XCopyArea(xw.dpy, (Drawable)im->pixmap, xw.buf, gc, 0, 0, im->width, im->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, im->width, im->height, borderpx + im->x * win.cw, borderpx + im->y * win.ch); + #endif // ANYSIZE_PATCH XFreeGC(xw.dpy, gc); }