Merge pull request #533 from heuripedes/master

(griffin.c) Fix build when freetype2 support is enabled
This commit is contained in:
Twinaphex 2014-02-05 16:52:53 +01:00
commit c6ae04ef04
2 changed files with 9 additions and 2 deletions

View File

@ -24,13 +24,16 @@ static const font_renderer_driver_t *font_backends[] = {
#ifdef HAVE_FREETYPE
&ft_font_renderer,
#endif
#if !defined(DONT_HAVE_BITMAPFONTS)
&bitmap_font_renderer,
#endif
NULL
};
bool font_renderer_create_default(const font_renderer_driver_t **driver, void **handle)
{
unsigned i;
for (i = 0; i < ARRAY_SIZE(font_backends); i++)
for (i = 0; font_backends[i]; i++)
{
const char *font_path = *g_settings.video.font_path ? g_settings.video.font_path : NULL;
if (!font_path)

View File

@ -247,15 +247,19 @@ FONTS
#if defined(HAVE_OPENGL) || defined(HAVE_D3D8) || defined(HAVE_D3D9)
#if defined(HAVE_FREETYPE) || !defined(DONT_HAVE_BITMAPFONTS)
#include "../gfx/fonts/fonts.c"
#if defined(HAVE_FREETYPE)
#include "../gfx/fonts/freetype.c"
#endif
#if !defined(DONT_HAVE_BITMAPFONTS)
#include "../gfx/fonts/fonts.c"
#include "../gfx/fonts/bitmapfont.c"
#endif
#endif
#ifdef HAVE_OPENGL
#include "../gfx/fonts/gl_font.c"
#endif