sixel: adding anysize patch compatibility ref. #45

This commit is contained in:
bakkeby 2021-12-15 11:23:59 +01:00
parent ea91b10dab
commit 7099c6ec73
1 changed files with 4 additions and 0 deletions

4
x.c
View File

@ -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);
}