Fixed bug #1040435 (glutBitmapString() bug).

git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@530 7f0cb862-5218-0410-a997-914c9d46530a
This commit is contained in:
spanne 2004-12-31 16:35:23 +00:00
parent 5448913d6e
commit bbacc741c5
2 changed files with 3 additions and 1 deletions

View File

@ -706,3 +706,5 @@ from freeglut.
unimplemented). unimplemented).
(187) Fixed bug #1045054 (KeyReleaseMask typo). (187) Fixed bug #1045054 (KeyReleaseMask typo).
(188) Fixed bug #1040435 (glutBitmapString() bug).

View File

@ -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. * point back to the start of the line and down one line.
*/ */
while( c = *string++ ) while( c = *string++ )
if( string[c] == '\n' ) if( c == '\n' )
{ {
glBitmap ( 0, 0, 0, 0, -x, (float) -font->Height, NULL ); glBitmap ( 0, 0, 0, 0, -x, (float) -font->Height, NULL );
x = 0.0f; x = 0.0f;