Skip to content

Commit 9ba7ecf

Browse files
committed
FAQ: fix single-buffer patch
rebase against master
1 parent a2a7044 commit 9ba7ecf

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

FAQ

+8-8
Original file line numberDiff line numberDiff line change
@@ -189,18 +189,18 @@ buffer.
189189
diff --git a/x.c b/x.c
190190
--- a/x.c
191191
+++ b/x.c
192-
@@ -561,10 +561,6 @@ xresize(int col, int row)
193-
win.tw = MAX(1, col * win.cw);
194-
win.th = MAX(1, row * win.ch);
192+
@@ -732,10 +732,6 @@ xresize(int col, int row)
193+
win.tw = col * win.cw;
194+
win.th = row * win.ch;
195195

196196
- XFreePixmap(xw.dpy, xw.buf);
197197
- xw.buf = XCreatePixmap(xw.dpy, xw.win, win.w, win.h,
198198
- DefaultDepth(xw.dpy, xw.scr));
199199
- XftDrawChange(xw.draw, xw.buf);
200200
xclear(0, 0, win.w, win.h);
201-
}
202201

203-
@@ -921,8 +917,7 @@ xinit(void)
202+
/* resize to new width */
203+
@@ -1148,8 +1144,7 @@ xinit(int cols, int rows)
204204
gcvalues.graphics_exposures = False;
205205
dc.gc = XCreateGC(xw.dpy, parent, GCGraphicsExposures,
206206
&gcvalues);
@@ -210,10 +210,10 @@ diff --git a/x.c b/x.c
210210
XSetForeground(xw.dpy, dc.gc, dc.col[defaultbg].pixel);
211211
XFillRectangle(xw.dpy, xw.buf, dc.gc, 0, 0, win.w, win.h);
212212

213-
@@ -1386,8 +1381,6 @@ void
214-
draw(void)
213+
@@ -1632,8 +1627,6 @@ xdrawline(Line line, int x1, int y1, int x2)
214+
void
215+
xfinishdraw(void)
215216
{
216-
drawregion(0, 0, term.col, term.row);
217217
- XCopyArea(xw.dpy, xw.buf, xw.win, dc.gc, 0, 0, win.w,
218218
- win.h, 0, 0);
219219
XSetForeground(xw.dpy, dc.gc,

0 commit comments

Comments
 (0)