Ignore:
Timestamp:
07/22/15 21:00:30 (10 years ago)
Author:
epyon
Message:
  • short_string implementation - first usages
File:
1 edited

Legend:

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

    r433 r435  
    147147        size_t wsize = m_atlas.get_depth() * 4 * 4;
    148148        uint8* wfill = new uint8[m_atlas.get_depth() * 4 * 4];
    149         std::fill( wfill, wfill + wsize, 255 );
     149        raw_fill( wfill, wfill + wsize, 255 );
    150150        white.pos = ivec2();
    151151        m_atlas.set_region( white, wfill );
     
    189189nv::size_t gfx_renderer::load_font( const string_view& filename, nv::size_t size )
    190190{
    191         std::string id_name( filename.data(), filename.size() );
    192         char buffer[8]; size_t len = nv::sint32_to_buffer( sint32( size ), buffer );
    193         id_name.append( std::string( buffer, len ) );
    194         string_view id( id_name.c_str(), id_name.size() );
     191        string128 id( filename );
     192        id.append( size );
    195193        auto i = m_font_names.find( id );
    196194        if ( i != m_font_names.end() )
Note: See TracChangeset for help on using the changeset viewer.