Changeset 487 for trunk/src/gui


Ignore:
Timestamp:
03/08/16 08:05:51 (9 years ago)
Author:
epyon
Message:
 
Location:
trunk/src/gui
Files:
3 edited

Legend:

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

    r444 r487  
    1818        bool   clear;
    1919        bool   border;
    20         uchar8 border_chars[8];
     20        char  border_chars[8];
    2121        uint32 border_color;
    2222        uint32 text_color;
     
    6767                                er->border_color = uint32( border_color );
    6868                        for ( uint32 i = 0; i < 8 && i < path.length(); i++ )
    69                                 er->border_chars[i] = static_cast< uchar8 >( path[i] );
     69                                er->border_chars[i] = path[i];
    7070                }
    7171        }
     
    102102                for ( char c : e->m_text )
    103103                {
    104                         m_terminal->print( p, er->text_color, static_cast< unsigned char >( c ) );
     104                        m_terminal->print( p, er->text_color, c );
    105105                        ++p.x;
    106106                }
  • trunk/src/gui/gui_gfx_renderer.cc

    r472 r487  
    311311                }
    312312
    313                 e->m_text;
     313//              e->m_text;
    314314                if ( !e->m_text.empty() )
    315315                {
  • trunk/src/gui/gui_style.cc

    r448 r487  
    3333        if ( !resolve( e->m_id, e->m_class, cselector, centry, LUA_TTABLE ) ) return false;
    3434        vec = vec4();
    35         for ( int i = 0; i < 4; ++i )
     35        for ( size_t i = 0; i < 4; ++i )
    3636        {
    37                 lua_rawgeti( m_lua, -1, i+1 );
     37                lua_rawgeti( m_lua, -1, int(i+1) );
    3838                if ( lua_isnil( m_lua, -1 ) ) return true;
    3939                vec[i] = static_cast< float >( lua_tonumber( m_lua, -1 ) );
Note: See TracChangeset for help on using the changeset viewer.