Commit a7df665407731e23e8e48805bd21e0b11e8755ee

henry 2002-11-28T09:43:56

Added a static cast

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
diff --git a/src/FTBitmapGlyph.cpp b/src/FTBitmapGlyph.cpp
index a75af68..56957b8 100755
--- a/src/FTBitmapGlyph.cpp
+++ b/src/FTBitmapGlyph.cpp
@@ -1,4 +1,4 @@
-#include    "FTBitmapGlyph.h"
+#include "FTBitmapGlyph.h"
 
 FTBitmapGlyph::FTBitmapGlyph( FT_Glyph glyph)
 :   FTGlyph(),
@@ -49,7 +49,7 @@ FTBitmapGlyph::FTBitmapGlyph( FT_Glyph glyph)
     bBox = FTBBox( glyph);
     advance = static_cast<float>(glyph->advance.x >> 16);
     pos.x = bitmap->left;
-    pos.y = srcHeight - bitmap->top;
+    pos.y = static_cast<int>(srcHeight) - bitmap->top;
     
     // Is this the right place to do this?
     FT_Done_Glyph( glyph );