Refactor ttf.c to C++

This commit is contained in:
Ted John authored and Michael Steenbeek committed 2018-01-05 22:57:55 +01:00
1 parent 0c3c998177
commit 144dbf431c
8 files changed
+18 -8

No files matched your search

+1 -1
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 };
+1 -1
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 */
+1 -1
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"
{
@@ -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
File renamed without changes.
+1 -1
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
+1 -1
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
+1 -1
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