changeset: 160:1216e194d09f
user: Devin J. Pohly <djpohly_AT_djpohly.com>
date: Mon Oct 25 16:00:10 2010 -0400
files: st.c
description:
get rid of artifacts in border on resize down
diff -r 5f70228583ca -r 1216e194d09f st.c
--- a/st.c Mon Oct 25 15:26:47 2010 -0400
+++ b/st.c Mon Oct 25 16:00:10 2010 -0400
@@ -1274,9 +1274,17 @@
if(xw.bufw > oldw)
XFillRectangle(xw.dis, newbuf, dc.gc, oldw, 0,
xw.bufw-oldw, MIN(xw.bufh, oldh));
+ else if(xw.bufw < oldw && (BORDER > 0 || xw.w > xw.bufw))
+ XClearArea(xw.dis, xw.win, BORDER+xw.bufw, BORDER,
+ xw.w-xw.bufh-BORDER, BORDER+MIN(xw.bufh, oldh),
+ False);
if(xw.bufh > oldh)
XFillRectangle(xw.dis, newbuf, dc.gc, 0, oldh,
xw.bufw, xw.bufh-oldh);
+ else if(xw.bufh < oldh && (BORDER > 0 || xw.h > xw.bufh))
+ XClearArea(xw.dis, xw.win, BORDER, BORDER+xw.bufh,
+ xw.w-2*BORDER, xw.h-xw.bufh-BORDER,
+ False);
xw.buf = newbuf;
}
Received on Sun Oct 31 2010 - 19:28:15 CET
This archive was generated by hypermail 2.2.0 : Sun Oct 31 2010 - 19:36:05 CET