Changeset 364 for trunk/src/gui/gui_ascii_renderer.cc
- Timestamp:
- 05/15/15 12:52:52 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gui/gui_ascii_renderer.cc
r356 r364 80 80 for ( int x = 0; x < abs.get_width(); ++x ) 81 81 { 82 m_terminal->print( position( abs.ul.y, abs.ul.x + x ), er->border_color, er->border_chars[0] );83 m_terminal->print( position( abs.lr.y, abs.ul.x + x ), er->border_color, er->border_chars[1] );82 m_terminal->print( position( abs.ul.y, abs.ul.x + x ), er->border_color, (unsigned char)er->border_chars[0] ); 83 m_terminal->print( position( abs.lr.y, abs.ul.x + x ), er->border_color, (unsigned char)er->border_chars[1] ); 84 84 } 85 85 86 86 for ( int y = 0; y < abs.get_height(); ++y ) 87 87 { 88 m_terminal->print( position( abs.ul.y + y, abs.ul.x ), er->border_color, er->border_chars[2] );89 m_terminal->print( position( abs.ul.y + y, abs.lr.x ), er->border_color, er->border_chars[3] );88 m_terminal->print( position( abs.ul.y + y, abs.ul.x ), er->border_color, (unsigned char)er->border_chars[2] ); 89 m_terminal->print( position( abs.ul.y + y, abs.lr.x ), er->border_color, (unsigned char)er->border_chars[3] ); 90 90 } 91 91 92 m_terminal->print( abs.ul, er->border_color, er->border_chars[4] );93 m_terminal->print( abs.ur(), er->border_color, er->border_chars[5] );94 m_terminal->print( abs.ll(), er->border_color, er->border_chars[6] );95 m_terminal->print( abs.lr, er->border_color, er->border_chars[7] );92 m_terminal->print( abs.ul, er->border_color, (unsigned char)er->border_chars[4] ); 93 m_terminal->print( abs.ur(), er->border_color, (unsigned char)er->border_chars[5] ); 94 m_terminal->print( abs.ll(), er->border_color, (unsigned char)er->border_chars[6] ); 95 m_terminal->print( abs.lr, er->border_color, (unsigned char)er->border_chars[7] ); 96 96 } 97 97 if ( !e->m_text.empty() ) … … 100 100 for ( char c : e->m_text ) 101 101 { 102 m_terminal->print( p, er->text_color, c );102 m_terminal->print( p, er->text_color, (unsigned char)c ); 103 103 ++p.x; 104 104 } … … 111 111 } 112 112 113 void nv::gui::ascii_renderer::on_hover_change( element* e, bool hover)113 void nv::gui::ascii_renderer::on_hover_change( element* e, bool /*hover*/ ) 114 114 { 115 115 // TODO: FIX 116 int fix_me; 116 117 NV_LOG( nv::LOG_DEBUG, "on_hover_change" ); 117 118 e->m_flags[DIRTY] = true; 118 119 } 119 120 120 void nv::gui::ascii_renderer::on_select_change( element* e, bool select)121 void nv::gui::ascii_renderer::on_select_change( element* e, bool /*select*/ ) 121 122 { 122 123 // TODO: FIX 124 int fix_me; 123 125 NV_LOG( nv::LOG_DEBUG, "on_select_change" ); 124 126 e->m_flags[DIRTY] = true;
Note: See TracChangeset
for help on using the changeset viewer.