wesnoth-cvs-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Wesnoth-cvs-commits] wesnoth/src/sdl_ttf SDL_ttf.c


From: Philippe Plantier
Subject: [Wesnoth-cvs-commits] wesnoth/src/sdl_ttf SDL_ttf.c
Date: Wed, 16 Mar 2005 15:42:42 -0500

CVSROOT:        /cvsroot/wesnoth
Module name:    wesnoth
Branch:         
Changes by:     Philippe Plantier <address@hidden>      05/03/16 20:42:41

Modified files:
        src/sdl_ttf    : SDL_ttf.c 

Log message:
        Added a workaround from ott to allow the SDL_ttf fixes to build with 
the older
        libfreetype2 which ships with Apple's X11 developers package for MacOSX.

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/wesnoth/wesnoth/src/sdl_ttf/SDL_ttf.c.diff?tr1=1.5&tr2=1.6&r1=text&r2=text

Patches:
Index: wesnoth/src/sdl_ttf/SDL_ttf.c
diff -u wesnoth/src/sdl_ttf/SDL_ttf.c:1.5 wesnoth/src/sdl_ttf/SDL_ttf.c:1.6
--- wesnoth/src/sdl_ttf/SDL_ttf.c:1.5   Tue Mar 15 22:13:34 2005
+++ wesnoth/src/sdl_ttf/SDL_ttf.c       Wed Mar 16 20:42:41 2005
@@ -20,7 +20,7 @@
     address@hidden
 */
 
-/* $Id: SDL_ttf.c,v 1.5 2005/03/15 22:13:34 gruikya Exp $ */
+/* $Id: SDL_ttf.c,v 1.6 2005/03/16 20:42:41 gruikya Exp $ */
 
 #include <math.h>
 #include <stdio.h>
@@ -71,6 +71,13 @@
 #define CACHED_BITMAP  0x01
 #define CACHED_PIXMAP  0x02
 
+/*
+ * Allows building with early libfreetype 2.1.x (x < 3)
+ */
+#ifndef FT_PIXEL_MODE_MONO
+#define FT_PIXEL_MODE_MONO ft_pixel_mode_mono
+#endif
+
 /* Cached glyph information */
 typedef struct cached_glyph {
        int stored;




reply via email to

[Prev in Thread] Current Thread [Next in Thread]