From e215e177df4aef91b07bb269b26a60fbb5dfa5db Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Thu, 6 Dec 2007 22:13:14 +0000 Subject: [PATCH] Filling with the right attr should be done in screen-display.c. --- screen-display.c | 6 +++++- screen.c | 8 +------- 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 @@ -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 @@ -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. */