Ignore:
Timestamp:
05/15/15 12:52:52 (10 years ago)
Author:
epyon
Message:
  • fixed compilation on clang
  • cleared all clang warnings (except fix_me's)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/gui/gui_ascii_renderer.cc

    r356 r364  
    8080                for ( int x = 0; x < abs.get_width(); ++x )
    8181                {
    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] );
    8484                }
    8585
    8686                for ( int y = 0; y < abs.get_height(); ++y )
    8787                {
    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] );
    9090                }
    9191
    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] );
    9696        }
    9797        if ( !e->m_text.empty() )
     
    100100                for ( char c : e->m_text )
    101101                {
    102                         m_terminal->print( p, er->text_color, c );
     102                        m_terminal->print( p, er->text_color, (unsigned char)c );
    103103                        ++p.x;
    104104                }
     
    111111}
    112112
    113 void nv::gui::ascii_renderer::on_hover_change( element* e, bool hover )
     113void nv::gui::ascii_renderer::on_hover_change( element* e, bool /*hover*/ )
    114114{
    115115        // TODO: FIX
     116        int fix_me;
    116117        NV_LOG( nv::LOG_DEBUG, "on_hover_change" );
    117118        e->m_flags[DIRTY] = true;
    118119}
    119120
    120 void nv::gui::ascii_renderer::on_select_change( element* e, bool select )
     121void nv::gui::ascii_renderer::on_select_change( element* e, bool /*select*/ )
    121122{
    122123        // TODO: FIX
     124        int fix_me;
    123125        NV_LOG( nv::LOG_DEBUG, "on_select_change" );
    124126        e->m_flags[DIRTY] = true;
Note: See TracChangeset for help on using the changeset viewer.