Changeset 487 for trunk/src/gui
- Timestamp:
- 03/08/16 08:05:51 (9 years ago)
- Location:
- trunk/src/gui
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gui/gui_ascii_renderer.cc
r444 r487 18 18 bool clear; 19 19 bool border; 20 uchar8border_chars[8];20 char border_chars[8]; 21 21 uint32 border_color; 22 22 uint32 text_color; … … 67 67 er->border_color = uint32( border_color ); 68 68 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]; 70 70 } 71 71 } … … 102 102 for ( char c : e->m_text ) 103 103 { 104 m_terminal->print( p, er->text_color, static_cast< unsigned char >( c ));104 m_terminal->print( p, er->text_color, c ); 105 105 ++p.x; 106 106 } -
trunk/src/gui/gui_gfx_renderer.cc
r472 r487 311 311 } 312 312 313 e->m_text;313 // e->m_text; 314 314 if ( !e->m_text.empty() ) 315 315 { -
trunk/src/gui/gui_style.cc
r448 r487 33 33 if ( !resolve( e->m_id, e->m_class, cselector, centry, LUA_TTABLE ) ) return false; 34 34 vec = vec4(); 35 for ( int i = 0; i < 4; ++i )35 for ( size_t i = 0; i < 4; ++i ) 36 36 { 37 lua_rawgeti( m_lua, -1, i +1);37 lua_rawgeti( m_lua, -1, int(i+1) ); 38 38 if ( lua_isnil( m_lua, -1 ) ) return true; 39 39 vec[i] = static_cast< float >( lua_tonumber( m_lua, -1 ) );
Note: See TracChangeset
for help on using the changeset viewer.