X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Ffreeglut_font.c;h=e956d5b059d151b66725651d9cd095726d10fe08;hb=4d9d03a0ebfcd2c929fb7cc69ed4329c388b47e9;hp=9a99f46162eb522174cc43d39f46b8f3512111c0;hpb=0fd65e65061141e7317caba38801580374f09d0b;p=freeglut diff --git a/src/freeglut_font.c b/src/freeglut_font.c index 9a99f46..e956d5b 100644 --- a/src/freeglut_font.c +++ b/src/freeglut_font.c @@ -153,7 +153,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; @@ -256,6 +256,10 @@ void FGAPIENTRY glutStrokeCharacter( void* fontID, int character ) for( j = 0; j < strip->Number; j++ ) glVertex2f( strip->Vertices[ j ].X, strip->Vertices[ j ].Y ); glEnd( ); + glBegin( GL_POINTS ); + for( j = 0; j < strip->Number; j++ ) + glVertex2f( strip->Vertices[ j ].X, strip->Vertices[ j ].Y ); + glEnd( ); } glTranslatef( schar->Right, 0.0, 0.0 ); }