commit 1312801

chld  ·  2026-07-12 14:08:52 +0000 UTC
parent 786e61c
small bugfixes
1 files changed,  +3, -4
M xd.c
M xd.c
+3, -4
 1@@ -62,10 +62,9 @@ int main(void)
 2 					int cw = wi < ev.xconfigure.width ? wi : ev.xconfigure.width;
 3 					int ch = hi < ev.xconfigure.height ? hi : ev.xconfigure.height;
 4 
 5-					XCopyArea(d,p,l,gc,0,0,\
 6-							//ev.xconfigure.width,ev.xconfigure.height,
 7+					XCopyArea(d,p,l,gc,0,0,
 8 							cw,ch,
 9-							0,0); /* copy old pixmap to new pixmap */
10+							0,0);
11 					XFreePixmap(d,p);
12 					p=l;
13 
14@@ -107,8 +106,8 @@ int main(void)
15 				if (k==XK_c) {
16 					XSetForeground(d, gc, WhitePixel(d,s));
17 					XFillRectangle(d, p,gc,0,0,wi,hi);
18-					XClearWindow(d,w);
19 					XCopyArea(d,p,w,gc,0,0,wi,hi,0,0);
20+					XSetForeground(d, gc, BlackPixel(d,s));
21 				}
22 				if (k==XK_e) er=!er;
23 				if (k==XK_i) z+=5;