aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornoname <noname@inventati.org>2014-04-28 02:16:21 +0400
committerRoberto E. Vargas Caballero <k0ga@shike2.com>2014-08-10 22:22:42 +0200
commitd4a17316d33f3c5a0017d7fe6e7e174883ccaa97 (patch)
tree70d753c42ba314960397000835b34da945954999
parent20c4f122543b67c0cdcefd151eb38b3bee599c10 (diff)
downloadst-d4a17316d33f3c5a0017d7fe6e7e174883ccaa97.tar.gz
st-d4a17316d33f3c5a0017d7fe6e7e174883ccaa97.tar.bz2
st-d4a17316d33f3c5a0017d7fe6e7e174883ccaa97.zip
Don't set dirty all lines because tswapcreen do it
Signed-off-by: Roberto E. Vargas Caballero <k0ga@shike2.com>
-rw-r--r--st.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/st.c b/st.c
index 9eebbe4..814f3f5 100644
--- a/st.c
+++ b/st.c
@@ -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));
}
@@ -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 {