Commit e0e8e47941f79b374aafe5e586f69aad46095360

sammy 2008-05-02T13:27:11

* Add an implicit cast to FTGL::TextAlignment in the FTLayout::SetAlignment C wrapper.

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 76b07d7..c8b3704 100644
--- a/src/FTLayout/FTLayoutGlue.cpp
+++ b/src/FTLayout/FTLayoutGlue.cpp
@@ -137,7 +137,7 @@ C_FUN(float, ftglGetLayoutLineLength, (FTGLlayout *f),
 
 // void SetAlignment(const TextAlignment Alignment)
 C_FUN(void, ftglSetLayoutAlignment, (FTGLlayout *f, const int a),
-      return, SetAlignment, (a));
+      return, SetAlignment, ((FTGL::TextAlignment)a));
 
 // TextAlignment GetAlignment() const
 C_FUN(int, ftglGetLayoutAlignement, (FTGLlayout *f),