Make Terminal::Renditions smaller, and its members private.

This commit is contained in:
John Hood
2017-10-29 13:46:59 -04:00
parent 0ec85b508e
commit cf493da7b4
2 changed files with 12 additions and 9 deletions
+4 -4
View File
@@ -202,8 +202,8 @@ void NotificationEngine::apply( Framebuffer &fb ) const
/* draw bar across top of screen */
Cell notification_bar( 0 );
notification_bar.get_renditions().foreground_color = 37;
notification_bar.get_renditions().background_color = 44;
notification_bar.get_renditions().set_foreground_color( 37 );
notification_bar.get_renditions().set_background_color( 44 );
notification_bar.append( 0x20 );
for ( int i = 0; i < fb.ds.get_width(); i++ ) {
@@ -273,8 +273,8 @@ void NotificationEngine::apply( Framebuffer &fb ) const
this_cell = fb.get_mutable_cell( 0, overlay_col );
fb.reset_cell( this_cell );
this_cell->get_renditions().set_attribute(Renditions::bold, true);
this_cell->get_renditions().foreground_color = 37;
this_cell->get_renditions().background_color = 44;
this_cell->get_renditions().set_foreground_color( 37 );
this_cell->get_renditions().set_background_color( 44 );
this_cell->append( ch );
this_cell->set_wide( chwidth == 2 );