From f79ac733f3e70d4b6abdc736ddc9f76c155a6cd4 Mon Sep 17 00:00:00 2001 From: Bakkeby Date: Thu, 7 Mar 2024 21:24:31 +0100 Subject: [PATCH] sixel + anysize patch compatibility fix ref. #117 --- x.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/x.c b/x.c index 7c1ce81..89fed95 100644 --- 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