Added smarter display routine

This commit is contained in:
Keith Winstein
2011-02-05 02:55:30 -05:00
parent 225ddbe2bf
commit a54cc9d0c4
6 changed files with 179 additions and 6 deletions
+5 -1
View File
@@ -395,7 +395,7 @@ void DrawState::resize( int s_width, int s_height )
int DrawState::get_background_rendition( void )
{
int color = 0;
int color = -1;
for ( std::vector<int>::iterator i = renditions.begin();
i != renditions.end();
i++ ) {
@@ -412,6 +412,10 @@ void Framebuffer::back_color_erase( void )
{
int bg_color = ds.get_background_rendition();
if ( bg_color < 0 ) {
return;
}
for ( int row = 0; row < ds.get_height(); row++ ) {
for ( int col = 0; col < ds.get_width(); col++ ) {
Cell *cell = get_cell( row, col );