projects
/
freeglut
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix object/function pointer inconsistencies which are a problem for gcc 3.4.2.
[freeglut]
/
src
/
freeglut_font.c
diff --git
a/src/freeglut_font.c
b/src/freeglut_font.c
index
8042234
..
b163f6e
100644
(file)
--- 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.
*/
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
-#ifdef HAVE_CONFIG_H
-#include "config.h"
-#endif
-
#include <GL/freeglut.h>
#include "freeglut_internal.h"
#include <GL/freeglut.h>
#include "freeglut_internal.h"
@@
-157,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++) )
* 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;
{
glBitmap ( 0, 0, 0, 0, -x, (float) -font->Height, NULL );
x = 0.0f;