From bbacc741c590796d7d1f238f5aed263bfd3775cd Mon Sep 17 00:00:00 2001 From: spanne Date: Fri, 31 Dec 2004 16:35:23 +0000 Subject: [PATCH] Fixed bug #1040435 (glutBitmapString() bug). git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@530 7f0cb862-5218-0410-a997-914c9d46530a --- freeglut/freeglut/ChangeLog | 2 ++ freeglut/freeglut/src/freeglut_font.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/freeglut/freeglut/ChangeLog b/freeglut/freeglut/ChangeLog index 05828f6..3e1efaf 100644 --- a/freeglut/freeglut/ChangeLog +++ b/freeglut/freeglut/ChangeLog @@ -706,3 +706,5 @@ from freeglut. unimplemented). (187) Fixed bug #1045054 (KeyReleaseMask typo). + +(188) Fixed bug #1040435 (glutBitmapString() bug). diff --git a/freeglut/freeglut/src/freeglut_font.c b/freeglut/freeglut/src/freeglut_font.c index d754755..f45a511 100644 --- a/freeglut/freeglut/src/freeglut_font.c +++ b/freeglut/freeglut/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;