[dev] [st][PATCH] Don't set dirty all lines because tswapcreen do it

From: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
Date: Sun, 10 Aug 2014 22:28:25 +0200

From: noname <noname_AT_inventati.org>

Signed-off-by: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
---
 st.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/st.c b/st.c
index 9eebbe4..814f3f5 100644
--- a/st.c
+++ b/st.c
_AT_@ -2700,14 +2700,12 @@ tresize(int col, int row) {
 
 	/* resize each row to new width, zero-pad if needed */
 	for(i = 0; i < minrow; i++) {
-		term.dirty[i] = 1;
 		term.line[i] = xrealloc(term.line[i], col * sizeof(Glyph));
 		term.alt[i]  = xrealloc(term.alt[i],  col * sizeof(Glyph));
 	}
 
 	/* allocate any new rows */
 	for(/* i == minrow */; i < row; i++) {
-		term.dirty[i] = 1;
 		term.line[i] = xmalloc(col * sizeof(Glyph));
 		term.alt[i] = xmalloc(col * sizeof(Glyph));
 	}
_AT_@ -2727,7 +2725,7 @@ tresize(int col, int row) {
 	tsetscroll(0, row-1);
 	/* make use of the LIMIT in tmoveto */
 	tmoveto(term.c.x, term.c.y);
-	/* Clearing both screens */
+	/* Clearing both screens (it makes dirty all lines) */
 	orig = term.line;
 	c = term.c;
 	do {
-- 
1.9.3
Received on Sun Aug 10 2014 - 22:28:25 CEST

This archive was generated by hypermail 2.3.0 : Sun Aug 10 2014 - 22:36:07 CEST