1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2025-12-10 09:32:29 +01:00

Refactor ttf.c to C++

This commit is contained in:
Ted John
2018-01-05 21:14:20 +00:00
committed by Michael Steenbeek
parent 0c3c998177
commit 144dbf431c
8 changed files with 18 additions and 8 deletions

View File

@@ -20,7 +20,7 @@
#include "../sprites.h"
#include "drawing.h"
#include "Font.h"
#include "ttf.h"
#include "TTF.h"
static const sint32 SpriteFontLineHeight[] = { 6, 10, 10, 18 };

View File

@@ -21,7 +21,7 @@
#include "../paint/Paint.h"
#include "../sprites.h"
#include "drawing.h"
#include "ttf.h"
#include "TTF.h"
#pragma pack(push, 1)
/* size: 0xA12 */

View File

@@ -22,7 +22,7 @@
#include "../platform/platform.h"
#include "../sprites.h"
#include "../util/Util.h"
#include "ttf.h"
#include "TTF.h"
extern "C"
{

View File

@@ -23,7 +23,10 @@
#include "../localisation/localisation.h"
#include "../OpenRCT2.h"
#include "../platform/platform.h"
#include "ttf.h"
#include "TTF.h"
extern "C"
{
static bool _ttfInitialised = false;
@@ -315,9 +318,14 @@ void ttf_free_surface(TTFSurface * surface)
free(surface);
}
}
#else
#include "ttf.h"
#include "TTF.h"
extern "C"
{
bool ttf_initialise()
{
@@ -328,4 +336,6 @@ void ttf_dispose()
{
}
}
#endif // NO_TTF

View File

@@ -39,7 +39,7 @@ misrepresented as being the original software.
#include FT_GLYPH_H
#include FT_TRUETYPE_IDS_H
#include "ttf.h"
#include "TTF.h"
#pragma warning(disable : 4018) // '<': signed / unsigned mismatch

View File

@@ -22,7 +22,7 @@
#include "FontFamilies.h"
#include "../drawing/drawing.h"
#include "../drawing/ttf.h"
#include "../drawing/TTF.h"
#include "../localisation/language.h"
#ifndef NO_TTF

View File

@@ -49,7 +49,7 @@
#include "viewport.h"
#ifndef NO_TTF
#include "../drawing/ttf.h"
#include "../drawing/TTF.h"
#endif
#define CONSOLE_BUFFER_SIZE 8192