X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Ffreeglut_font.c;h=f45a5116e5d21ef2dad92045e28ff86d45222d35;hb=91fa73f22d66ddca47d3402ffaac09cebfb36190;hp=d7547550eafaadbbb48e1e7e05aff4eb46fcb50c;hpb=6a0e5d4b27c472ce3216395e22f9a6602a9fb665;p=freeglut diff --git a/src/freeglut_font.c b/src/freeglut_font.c index d754755..f45a511 100644 --- a/src/freeglut_font.c +++ b/src/freeglut_font.c @@ -155,7 +155,7 @@ void FGAPIENTRY glutBitmapString( void* fontID, const unsigned char *string ) * point back to the start of the line and down one line. */ while( c = *string++ ) - if( string[c] == '\n' ) + if( c == '\n' ) { glBitmap ( 0, 0, 0, 0, -x, (float) -font->Height, NULL ); x = 0.0f;