summaryrefslogtreecommitdiff
path: root/font.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2015-04-19 11:14:27 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2015-04-19 11:14:27 +0200
commit15927fd097abf5668439463202c51def45560d88 (patch)
tree9fffafb4d081f211d49ecdb8c7cd56af23ed1aa3 /font.c
parentc17328da8764e21af0e466701d5622345f7c38c0 (diff)
downloadvdr-15927fd097abf5668439463202c51def45560d88.tar.gz
vdr-15927fd097abf5668439463202c51def45560d88.tar.bz2
Fixed a compiler warning in font.c
Diffstat (limited to 'font.c')
-rw-r--r--font.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/font.c b/font.c
index cd2c494b..29256e05 100644
--- a/font.c
+++ b/font.c
@@ -6,7 +6,7 @@
*
* BiDi support by Osama Alrawab <alrawab@hotmail.com> @2008 Tripoli-Libya.
*
- * $Id: font.c 3.2 2014/01/07 12:19:45 kls Exp $
+ * $Id: font.c 4.1 2015/04/19 11:13:45 kls Exp $
*/
#include "font.h"
@@ -140,7 +140,7 @@ cFreetypeFont::cFreetypeFont(const char *Name, int CharHeight, int CharWidth)
if (!error) {
error = FT_Render_Glyph(face->glyph, FT_RENDER_MODE_NORMAL);
if (!error) {
- if (face->glyph->bitmap.rows-face->glyph->bitmap_top > bottom)
+ if (int(face->glyph->bitmap.rows-face->glyph->bitmap_top) > bottom)
bottom = face->glyph->bitmap.rows-face->glyph->bitmap_top;
}
else