Commit 01085e26 authored by Walantis Giosis's avatar Walantis Giosis

changed datatype of variable 'kerning' from int to float.

parent 3b86897d
......@@ -78,7 +78,7 @@ void add_text( vertex_buffer_t * buffer, texture_font_t * font,
texture_glyph_t *glyph = texture_font_get_glyph( font, text[i] );
if( glyph != NULL )
{
int kerning = 0;
float kerning = 0.0f;
if( i > 0)
{
kerning = texture_glyph_get_kerning( glyph, text[i-1] );
......
......@@ -117,7 +117,7 @@ void add_text( vertex_buffer_t * buffer, texture_font_t * font,
for( i=0; i<wcslen(text); ++i )
{
texture_glyph_t *glyph = texture_font_get_glyph( font, text[i] );
float kerning = 0;
float kerning = 0.0f;
if( i > 0)
{
kerning = texture_glyph_get_kerning( glyph, text[i-1] );
......
......@@ -156,7 +156,7 @@ add_text( vertex_buffer_t * buffer, texture_font_t * font,
texture_glyph_t *glyph = texture_font_get_glyph( font, text[i] );
if( glyph != NULL )
{
int kerning = 0;
float kerning = 0.0f;
if( i > 0)
{
kerning = texture_glyph_get_kerning( glyph, text[i-1] );
......
......@@ -146,7 +146,7 @@ void add_text( vertex_buffer_t * buffer, texture_font_t * font,
texture_glyph_t *glyph = texture_font_get_glyph( font, text[i] );
if( glyph != NULL )
{
int kerning = 0;
float kerning = 0.0f;
if( i > 0)
{
kerning = texture_glyph_get_kerning( glyph, text[i-1] );
......
......@@ -133,7 +133,7 @@ void add_text( vertex_buffer_t * buffer, texture_font_t * font,
texture_glyph_t *glyph = texture_font_get_glyph( font, text[i] );
if( glyph != NULL )
{
int kerning = 0;
float kerning = 0.0f;
if( i > 0)
{
kerning = texture_glyph_get_kerning( glyph, text[i-1] );
......
......@@ -144,7 +144,7 @@ void add_text( vertex_buffer_t * buffer, vec2 * pen, ... )
if( glyph != NULL )
{
float kerning = 0;
float kerning = 0.0f;
if( i > 0)
{
kerning = texture_glyph_get_kerning( glyph, text[i-1] );
......
......@@ -239,7 +239,7 @@ text_buffer_add_wchar( text_buffer_t * self,
GLuint indices[6*5];
texture_glyph_t *glyph;
texture_glyph_t *black;
float kerning = 0;
float kerning = 0.0f;
if( current == L'\n' )
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment