sixel: adding anysize patch compatibility ref. #45
This commit is contained in:
parent
ea91b10dab
commit
7099c6ec73
4
x.c
4
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);
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue