Reduce character cell lookups in Emulator::print().

This commit is contained in:
John Hood
2014-09-15 03:14:00 -04:00
parent 589d21bbf2
commit f5d814a9c4
3 changed files with 34 additions and 25 deletions
+5 -2
View File
@@ -256,9 +256,12 @@ int DrawState::limit_bottom( void ) const
return origin_mode ? scrolling_region_bottom_row : height - 1;
}
void Framebuffer::apply_renditions_to_current_cell( void )
void Framebuffer::apply_renditions_to_cell( Cell *cell )
{
get_mutable_cell()->renditions = ds.get_renditions();
if (!cell) {
cell = get_mutable_cell();
}
cell->renditions = ds.get_renditions();
}
SavedCursor::SavedCursor()