Fix bug that explicit renditions introduced to back color erase

This commit is contained in:
Keith Winstein
2011-02-05 18:34:12 -05:00
parent b8f7f06bf5
commit fd0a2f06ae
+1 -1
View File
@@ -350,7 +350,7 @@ void Framebuffer::back_color_erase( void )
for ( int col = 0; col < ds.get_width(); col++ ) {
Cell *cell = get_cell( row, col );
if ( cell->renditions.background_color == -1 ) {
cell->renditions.background_color = bg_color;
cell->renditions.background_color = bg_color == -1 ? 0 : bg_color;
}
}
}