Support "reset"

This commit is contained in:
Keith Winstein
2011-02-01 02:29:54 -05:00
parent 39dfccf450
commit 73af007db4
3 changed files with 17 additions and 0 deletions
+7
View File
@@ -306,3 +306,10 @@ void Framebuffer::delete_cell( int row, int col )
{
rows[ row ].delete_cell( col );
}
void Framebuffer::reset( void )
{
int width = ds.get_width(), height = ds.get_height();
rows = std::deque<Row>( height, Row( width ) );
ds = DrawState( width, height );
}