Commit 8886dced746728cf64a25b19f7c281792488571d

sammy 2008-04-29T14:57:06

* Fix the ftglLayoutRenderSpace C binding's prototype, which wasn't in sync with its implementation in FTGlue.cpp.

diff --git a/include/FTLayout.h b/include/FTLayout.h
index ecf591a..fcce92a 100644
--- a/include/FTLayout.h
+++ b/include/FTLayout.h
@@ -80,8 +80,8 @@ FTGL_EXPORT void ftglDestroyLayout(FTGLlayout*);
 FTGL_EXPORT void  ftglLayoutBBox (FTGLlayout *, const char*, float []);
 
 FTGL_EXPORT void  ftglLayoutRender      (FTGLlayout *, const char*);
-FTGL_EXPORT void  ftglLayoutRenderMode  (FTGLlayout *, const char*, int);
-FTGL_EXPORT void  ftglLayoutRenderSpace (FTGLlayout *, const float);
+FTGL_EXPORT void  ftglLayoutRenderMode  (FTGLlayout *, const char *, int);
+FTGL_EXPORT void  ftglLayoutRenderSpace (FTGLlayout *, const char *, float);
 
 FTGL_EXPORT void      ftglLayoutSetFont (FTGLlayout *, FTGLfont*);
 FTGL_EXPORT FTGLfont* ftglLayoutGetFont (FTGLlayout *);
diff --git a/src/FTGlue.cpp b/src/FTGlue.cpp
index e0e0644..9febd34 100644
--- a/src/FTGlue.cpp
+++ b/src/FTGlue.cpp
@@ -221,8 +221,8 @@ C_FUN(void, ftglLayoutRenderMode, (FTGLlayout *f, const char *s, int r),
       return, Render, (s, r));
 
 // void RenderSpace(const char *string, const float ExtraSpace = 0.0)
-C_FUN(void, ftglLayoutRenderSpace, (FTGLlayout *f, const char *s,
-        const float e), return, RenderSpace, (s, e));
+C_FUN(void, ftglLayoutRenderSpace, (FTGLlayout *f, const char *s, float e),
+      return, RenderSpace, (s, e));
 
 // void SetFont(FTFont *fontInit)
 void ftglLayoutSetFont(FTGLlayout *f, FTGLfont *font)