Author: spouliot
Date: 2007-09-25 15:35:56 -0400 (Tue, 25 Sep 2007)
New Revision: 86354
Modified:
trunk/moon/src/ChangeLog
trunk/moon/src/font.cpp
Log:
font.cpp: Fix warning.
Modified: trunk/moon/src/ChangeLog
===================================================================
--- trunk/moon/src/ChangeLog 2007-09-25 18:29:06 UTC (rev 86353)
+++ trunk/moon/src/ChangeLog 2007-09-25 19:35:56 UTC (rev 86354)
@@ -1,3 +1,7 @@
+2007-09-25 Sebastien Pouliot <[EMAIL PROTECTED]>
+
+ * font.cpp: Fix warning.
+
2007-09-25 Larry Ewing <[EMAIL PROTECTED]>
* brush.cpp|h: add image_brush_create_similar to simplify creating
Modified: trunk/moon/src/font.cpp
===================================================================
--- trunk/moon/src/font.cpp 2007-09-25 18:29:06 UTC (rev 86353)
+++ trunk/moon/src/font.cpp 2007-09-25 19:35:56 UTC (rev 86354)
@@ -142,7 +142,7 @@
TextFont::TextFont (FcPattern *pattern)
{
- const char *filename = NULL;
+ FcChar8 *filename = NULL;
FcPattern *matched, *sans;
bool retried = false;
FcResult result;
@@ -155,13 +155,13 @@
retry:
- if (FcPatternGetString (matched, FC_FILE, 0, (FcChar8 **) &filename) !=
FcResultMatch)
+ if (FcPatternGetString (matched, FC_FILE, 0, &filename) !=
FcResultMatch)
goto fail;
if (FcPatternGetInteger (matched, FC_INDEX, 0, &id) != FcResultMatch)
goto fail;
- if (FT_New_Face (libft2, filename, id, &face) != 0) {
+ if (FT_New_Face (libft2, (const char*)filename, id, &face) != 0) {
fail:
if (retried)
exit (1);
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches