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.
pull/581/merge
nicm 2017-05-12 15:18:13 +00:00
parent e2a18e2b37
commit 0cd74723e1
1 changed files with 1 additions and 1 deletions

2
grid.c
View File

@ -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);
}