st-flexipatch

My st-flexipatch configuration
git clone git://git.ethandl.dev/st-flexipatch
Log | Files | Refs | README | LICENSE

commit 7099c6ec7345e46a4baa101342ae9e5a31556aaf
parent ea91b10dab7a09c56fa395a9d2c017d4ed3e93f1
Author: bakkeby <bakkeby@gmail.com>
Date:   Wed, 15 Dec 2021 11:23:59 +0100

sixel: adding anysize patch compatibility ref. #45

Diffstat:
Mx.c | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git 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); }