aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2007-12-06 22:13:14 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2007-12-06 22:13:14 +0000
commite215e177df4aef91b07bb269b26a60fbb5dfa5db (patch)
tree1eff861d7f70e44b85fc73e7d69d3902a4d7a302
parent21d10e68940743dc6ef1d235b455b00c71540905 (diff)
downloadrtmux-e215e177df4aef91b07bb269b26a60fbb5dfa5db.tar.gz
rtmux-e215e177df4aef91b07bb269b26a60fbb5dfa5db.tar.bz2
rtmux-e215e177df4aef91b07bb269b26a60fbb5dfa5db.zip
Filling with the right attr should be done in screen-display.c.
-rw-r--r--screen-display.c6
-rw-r--r--screen.c8
2 files changed, 6 insertions, 8 deletions
diff --git a/screen-display.c b/screen-display.c
index bf85f1e0..2d42210f 100644
--- a/screen-display.c
+++ b/screen-display.c
@@ -1,4 +1,4 @@
-/* $Id: screen-display.c,v 1.13 2007-12-06 21:57:57 nicm Exp $ */
+/* $Id: screen-display.c,v 1.14 2007-12-06 22:13:14 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -39,6 +39,10 @@ screen_display_make_lines(struct screen *s, u_int py, u_int ny)
return;
}
screen_make_lines(s, screen_y(s, py), ny);
+ if (s->attr != SCREEN_DEFATTR || s->colr != SCREEN_DEFCOLR) {
+ screen_display_fill_area(s, 0, py,
+ screen_size_x(s), ny, SCREEN_DEFDATA, s->attr, s->colr);
+ }
}
/* Free a region of lines. */
diff --git a/screen.c b/screen.c
index 89dd5d63..b8a30075 100644
--- a/screen.c
+++ b/screen.c
@@ -1,4 +1,4 @@
-/* $Id: screen.c,v 1.57 2007-12-06 21:57:57 nicm Exp $ */
+/* $Id: screen.c,v 1.58 2007-12-06 22:13:14 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -334,12 +334,6 @@ screen_make_lines(struct screen *s, u_int py, u_int ny)
s->grid_colr[i] = NULL;
s->grid_size[i] = 0;
}
-
- /* XXX should this be done in the callers? */
- if (s->attr != SCREEN_DEFATTR || s->colr != SCREEN_DEFCOLR) {
- screen_fill_area(s, 0, py,
- screen_size_x(s), ny, SCREEN_DEFDATA, s->attr, s->colr);
- }
}
/* Free a range of ny lines at py. */