[hackers] [st] FAQ: fix single-buffer patch || Hiltjo Posthuma

From: <git_AT_suckless.org>
Date: Mon, 1 Jun 2020 14:11:26 +0200 (CEST)

commit 9ba7ecf7b15ec2986c6142036706aa353b249ef9
Author: Hiltjo Posthuma <hiltjo_AT_codemadness.org>
AuthorDate: Mon Jun 1 14:09:46 2020 +0200
Commit: Hiltjo Posthuma <hiltjo_AT_codemadness.org>
CommitDate: Mon Jun 1 14:09:46 2020 +0200

    FAQ: fix single-buffer patch
    
    rebase against master

diff --git a/FAQ b/FAQ
index fb40264..0f9609d 100644
--- a/FAQ
+++ b/FAQ
_AT_@ -189,18 +189,18 @@ buffer.
 diff --git a/x.c b/x.c
 --- a/x.c
 +++ b/x.c
-_AT_@ -561,10 +561,6 @@ xresize(int col, int row)
- win.tw = MAX(1, col * win.cw);
- win.th = MAX(1, row * win.ch);
+_AT_@ -732,10 +732,6 @@ xresize(int col, int row)
+ win.tw = col * win.cw;
+ win.th = row * win.ch;
  
 - XFreePixmap(xw.dpy, xw.buf);
 - xw.buf = XCreatePixmap(xw.dpy, xw.win, win.w, win.h,
 - DefaultDepth(xw.dpy, xw.scr));
 - XftDrawChange(xw.draw, xw.buf);
          xclear(0, 0, win.w, win.h);
- }
  
-_AT_@ -921,8 +917,7 @@ xinit(void)
+ /* resize to new width */
+_AT_@ -1148,8 +1144,7 @@ xinit(int cols, int rows)
          gcvalues.graphics_exposures = False;
          dc.gc = XCreateGC(xw.dpy, parent, GCGraphicsExposures,
                          &gcvalues);
_AT_@ -210,10 +210,10 @@ diff --git a/x.c b/x.c
          XSetForeground(xw.dpy, dc.gc, dc.col[defaultbg].pixel);
          XFillRectangle(xw.dpy, xw.buf, dc.gc, 0, 0, win.w, win.h);
  
-_AT_@ -1386,8 +1381,6 @@ void
- draw(void)
+_AT_@ -1632,8 +1627,6 @@ xdrawline(Line line, int x1, int y1, int x2)
+ void
+ xfinishdraw(void)
  {
- drawregion(0, 0, term.col, term.row);
 - XCopyArea(xw.dpy, xw.buf, xw.win, dc.gc, 0, 0, win.w,
 - win.h, 0, 0);
          XSetForeground(xw.dpy, dc.gc,
Received on Mon Jun 01 2020 - 14:11:26 CEST

This archive was generated by hypermail 2.3.0 : Mon Jun 01 2020 - 14:12:37 CEST