Commit eae0686dccdb604c41c39cd3e477319c3269956a

sammy 2010-05-22T23:02:34

Fix ftglRenderLayout() implementation. Fix courtesy of Tobias Gunkel. Addresses SF bug #2122839.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/FTLayout/FTLayoutGlue.cpp b/src/FTLayout/FTLayoutGlue.cpp
index eb71d23..c941912 100644
--- a/src/FTLayout/FTLayoutGlue.cpp
+++ b/src/FTLayout/FTLayoutGlue.cpp
@@ -90,7 +90,7 @@ void ftglGetLayoutBBox(FTGLlayout *l, const char * s, float c[6])
 
 // virtual void FTLayout::Render(const char* string, int renderMode);
 C_FUN(void, ftglRenderLayout, (FTGLlayout *l, const char *s, int r),
-      return, Render, (s, r));
+      return, Render, (s, -1, FTPoint(), r));
 
 // FT_Error FTLayout::Error() const;
 C_FUN(FT_Error, ftglGetLayoutError, (FTGLlayout *l), return -1, Error, ());