projects
/
freeglut
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fixed bug #1040435 (glutBitmapString() bug).
[freeglut]
/
src
/
freeglut_font.c
diff --git
a/src/freeglut_font.c
b/src/freeglut_font.c
index
d754755
..
f45a511
100644
(file)
--- 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;