From 36e68bcba2e60808a1b629aea3640f8d8bec9c2d Mon Sep 17 00:00:00 2001 From: Lucian Muresan Date: Fri, 22 Feb 2013 21:33:58 +0100 Subject: fixed build when compiling without FREETYPE2 --- glcdgraphics/font.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'glcdgraphics/font.c') diff --git a/glcdgraphics/font.c b/glcdgraphics/font.c index 24a44a0..9bbc1af 100644 --- a/glcdgraphics/font.c +++ b/glcdgraphics/font.c @@ -29,6 +29,8 @@ #include #include FT_FREETYPE_H #include +#else +#include #endif namespace GLCD -- cgit v1.2.3 From 281feef328f8e3772f7a0dde0a90c3a5260c334d Mon Sep 17 00:00:00 2001 From: Lucian Muresan Date: Fri, 22 Feb 2013 22:09:40 +0100 Subject: more consistent usage of debug code (define HAVE_DEBUG) --- glcdgraphics/font.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'glcdgraphics/font.c') diff --git a/glcdgraphics/font.c b/glcdgraphics/font.c index 9bbc1af..7e82cee 100644 --- a/glcdgraphics/font.c +++ b/glcdgraphics/font.c @@ -170,7 +170,7 @@ bool cFont::LoadFNT(const std::string & fileName, const std::string & encoding) character = chdr[0] | (chdr[1] << 8); charWidth = chdr[2] | (chdr[3] << 8); fread(buffer, fontHeight * ((charWidth + 7) / 8), 1, fontFile); -#ifdef DEBUG +#ifdef HAVE_DEBUG printf ("fontHeight %0d - charWidth %0d - character %0d - bytes %0d\n", fontHeight, charWidth, character,fontHeight * ((charWidth + 7) / 8)); #endif -- cgit v1.2.3