Changeset 444 for trunk/src/gui/gui_ascii_renderer.cc
- Timestamp:
- 07/29/15 16:24:01 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gui/gui_ascii_renderer.cc
r440 r444 66 66 if ( m_style.get( e, "ascii_border_color", selector, border_color ) ) 67 67 er->border_color = uint32( border_color ); 68 for ( uint32 i = 0; i < 8 && i < path.length(); )68 for ( uint32 i = 0; i < 8 && i < path.length(); i++ ) 69 69 er->border_chars[i] = static_cast< uchar8 >( path[i] ); 70 70 } … … 81 81 for ( int x = 0; x < abs.get_width(); ++x ) 82 82 { 83 m_terminal->print( position( abs.ul. y, abs.ul.x + x), er->border_color, er->border_chars[0] );84 m_terminal->print( position( abs. lr.y, abs.ul.x + x), er->border_color, er->border_chars[1] );83 m_terminal->print( position( abs.ul.x + x, abs.ul.y ), er->border_color, er->border_chars[0] ); 84 m_terminal->print( position( abs.ul.x + x, abs.lr.y ), er->border_color, er->border_chars[1] ); 85 85 } 86 86 87 87 for ( int y = 0; y < abs.get_height(); ++y ) 88 88 { 89 m_terminal->print( position( abs.ul. y + y, abs.ul.x), er->border_color, er->border_chars[2] );90 m_terminal->print( position( abs. ul.y + y, abs.lr.x), er->border_color, er->border_chars[3] );89 m_terminal->print( position( abs.ul.x, abs.ul.y + y ), er->border_color, er->border_chars[2] ); 90 m_terminal->print( position( abs.lr.x, abs.ul.y + y ), er->border_color, er->border_chars[3] ); 91 91 } 92 92 … … 95 95 m_terminal->print( abs.ll(), er->border_color, er->border_chars[6] ); 96 96 m_terminal->print( abs.lr, er->border_color, er->border_chars[7] ); 97 m_terminal->update(); 97 98 } 98 99 if ( !e->m_text.empty() ) … … 112 113 } 113 114 114 void nv::gui::ascii_renderer::on_ hover_change( element* e, bool /*hover*/)115 void nv::gui::ascii_renderer::on_style_change( element* e ) 115 116 { 116 // TODO: FIX 117 int fix_me; 118 NV_LOG_DEBUG( "on_hover_change" ); 119 e->m_flags[DIRTY] = true; 117 m_style.load_flags( e ); 120 118 } 121 119 122 void nv::gui::ascii_renderer::on_ select_change( element* e, bool /*select*/)120 void nv::gui::ascii_renderer::on_hover_change( element* e ) 123 121 { 124 // TODO: FIX 125 int fix_me; 126 NV_LOG_DEBUG( "on_select_change" ); 127 e->m_flags[DIRTY] = true; 122 if ( e->m_flags[DIRTY_HOVER] ) e->m_flags[DIRTY] = true; 123 } 124 125 void nv::gui::ascii_renderer::on_select_change( element* e ) 126 { 127 if ( e->m_flags[DIRTY_SELECT] ) e->m_flags[DIRTY] = true; 128 128 } 129 129
Note: See TracChangeset
for help on using the changeset viewer.