mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-12 18:40:29 +00:00
(svn r25450) -Fix: compilation without freetype
This commit is contained in:
parent
ab4bd11208
commit
aa3c106843
@ -9,6 +9,8 @@
|
|||||||
|
|
||||||
/** @file fontdetection.cpp Detection of the right font. */
|
/** @file fontdetection.cpp Detection of the right font. */
|
||||||
|
|
||||||
|
#ifdef WITH_FREETYPE
|
||||||
|
|
||||||
#include "stdafx.h"
|
#include "stdafx.h"
|
||||||
#include "debug.h"
|
#include "debug.h"
|
||||||
#include "fontdetection.h"
|
#include "fontdetection.h"
|
||||||
@ -774,3 +776,5 @@ bool SetFallbackFont(FreeTypeSettings *settings, const char *language_isocode, i
|
|||||||
FT_Error GetFontByFaceName(const char *font_name, FT_Face *face) {return FT_Err_Cannot_Open_Resource;}
|
FT_Error GetFontByFaceName(const char *font_name, FT_Face *face) {return FT_Err_Cannot_Open_Resource;}
|
||||||
bool SetFallbackFont(FreeTypeSettings *settings, const char *language_isocode, int winlangid, MissingGlyphSearcher *callback) { return false; }
|
bool SetFallbackFont(FreeTypeSettings *settings, const char *language_isocode, int winlangid, MissingGlyphSearcher *callback) { return false; }
|
||||||
#endif /* WITH_FONTCONFIG */
|
#endif /* WITH_FONTCONFIG */
|
||||||
|
|
||||||
|
#endif /* WITH_FREETYPE */
|
||||||
|
@ -12,9 +12,10 @@
|
|||||||
#ifndef FONTDETECTION_H
|
#ifndef FONTDETECTION_H
|
||||||
#define FONTDETECTION_H
|
#define FONTDETECTION_H
|
||||||
|
|
||||||
|
#include "fontcache.h"
|
||||||
|
|
||||||
#ifdef WITH_FREETYPE
|
#ifdef WITH_FREETYPE
|
||||||
|
|
||||||
#include "fontcache.h"
|
|
||||||
#include <ft2build.h>
|
#include <ft2build.h>
|
||||||
#include FT_FREETYPE_H
|
#include FT_FREETYPE_H
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user