Commit 4ab2e7d8e7929b034133654ec6a814428c6612f8

henry 2002-11-23T09:04:52

Added cast to FT_New_Memory_Face

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/FTFace.cpp b/src/FTFace.cpp
index 571375a..0f33b38 100755
--- a/src/FTFace.cpp
+++ b/src/FTFace.cpp
@@ -47,7 +47,7 @@ bool FTFace::Open( const unsigned char *pBufferBytes, size_t bufferSizeInBytes )
     ftFace = new FT_Face;
 
     // FIXME check library for errors
-    err = FT_New_Memory_Face( *FTLibrary::Instance().GetLibrary(), pBufferBytes, bufferSizeInBytes, DEFAULT_FACE_INDEX, ftFace);
+    err = FT_New_Memory_Face( *FTLibrary::Instance().GetLibrary(), (FT_Byte *)pBufferBytes, bufferSizeInBytes, DEFAULT_FACE_INDEX, ftFace);
 
     if( err)
     {