mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-28 02:30:35 +00:00
Merge pull request #533 from heuripedes/master
(griffin.c) Fix build when freetype2 support is enabled
This commit is contained in:
commit
c6ae04ef04
@ -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)
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user