X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Ffreeglut_font.c;h=b163f6ed5cb32b84f33ced27f7e73265c96c0464;hb=a14928fc505633d395e18db84ce7dbfd7386fa5f;hp=2c6ed5e3dc56ea1e28b690509e57c5d65fe62afa;hpb=d296a46a2dccdd99048541e1f8ca0ef010ac8545;p=freeglut diff --git a/src/freeglut_font.c b/src/freeglut_font.c index 2c6ed5e..b163f6e 100644 --- a/src/freeglut_font.c +++ b/src/freeglut_font.c @@ -25,10 +25,6 @@ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -#ifdef HAVE_CONFIG_H -#include "config.h" -#endif - #include #include "freeglut_internal.h" @@ -156,8 +152,8 @@ void FGAPIENTRY glutBitmapString( void* fontID, const unsigned char *string ) * A newline will simply translate the next character's insertion * point back to the start of the line and down one line. */ - while( c = *string++ ) - if( string[c] == '\n' ) + while( ( c = *string++) ) + if( c == '\n' ) { glBitmap ( 0, 0, 0, 0, -x, (float) -font->Height, NULL ); x = 0.0f; @@ -206,7 +202,7 @@ int FGAPIENTRY glutBitmapLength( void* fontID, const unsigned char* string ) if ( !string || ! *string ) return 0; - while( c = *string++ ) + while( ( c = *string++) ) { if( c != '\n' )/* Not an EOL, increment length of line */ this_line_length += *( font->Characters[ c ]); @@ -281,7 +277,7 @@ void FGAPIENTRY glutStrokeString( void* fontID, const unsigned char *string ) * A newline will simply translate the next character's insertion * point back to the start of the line and down one line. */ - while( c = *string++ ) + while( ( c = *string++) ) if( c < font->Quantity ) { if( c == '\n' ) @@ -348,7 +344,7 @@ int FGAPIENTRY glutStrokeLength( void* fontID, const unsigned char* string ) if ( !string || ! *string ) return 0; - while( c = *string++ ) + while( ( c = *string++) ) if( c < font->Quantity ) { if( c == '\n' ) /* EOL; reset the length of this line */