From 0cd74723e1e3c7152323c700eba6cf4ce83f46e4 Mon Sep 17 00:00:00 2001 From: nicm Date: Fri, 12 May 2017 15:18:13 +0000 Subject: [PATCH] When expanding a line in order to clear it, we need to use the default background colour - there may be portions that we do not want to clear with the new background colour. --- grid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/grid.c b/grid.c index 4f728dbe..3b03df75 100644 --- a/grid.c +++ b/grid.c @@ -472,7 +472,7 @@ grid_clear(struct grid *gd, u_int px, u_int py, u_int nx, u_int ny, u_int bg) gd->linedata[yy].cellsize = px; continue; } - grid_expand_line(gd, yy, px + nx, bg); + grid_expand_line(gd, yy, px + nx, 8); /* default bg first */ for (xx = px; xx < px + nx; xx++) grid_clear_cell(gd, xx, yy, bg); }