Ignore:
Timestamp:
06/15/13 17:47:57 (12 years ago)
Author:
epyon
Message:
  • Nova builds with -Weverything/-Wall/-pedantic/etc on: on MSVC 2012 on GCC 4.6.3 on clang 3.2
  • ... without a single fucking warning.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/gfx/texture_font.cc

    r114 r121  
    1717}
    1818
    19 float texture_glyph::get_kerning( const uint16 charcode )
     19float texture_glyph::get_kerning( const uint16 other )
    2020{
    21         auto i = kerning.find( charcode );
     21        auto i = kerning.find( other );
    2222        return i != kerning.end() ? i->second : 0.0f;
    2323}
     
    118118        }
    119119
    120         for ( char c : codes )
     120        for ( char ch : codes )
    121121        {
     122                uint16 c = static_cast<uint16>( ch );
    122123                FT_UInt glyph_index = FT_Get_Char_Index( face, c );
    123124                FT_Error error = FT_Load_Glyph( face, glyph_index, flags );
     
    136137                int ft_glyph_top    = slot->bitmap_top;
    137138                int ft_glyph_left   = slot->bitmap_left;
    138                 int reg_width       = ft_bitmap_width / (depth > 3 ? 3 : depth);
     139                int reg_width       = ft_bitmap_width / (depth > 3 ? 3 : (int)depth);
    139140
    140141                glm::ivec2 gsize( reg_width + 1, ft_bitmap_rows + 1 );
Note: See TracChangeset for help on using the changeset viewer.