ecere/gfx/fontRendering: Fixed warning
authorJerome St-Louis <jerome@ecere.com>
Thu, 4 Aug 2016 12:53:49 +0000 (08:53 -0400)
committerJerome St-Louis <jerome@ecere.com>
Thu, 4 Aug 2016 12:53:49 +0000 (08:53 -0400)
ecere/src/gfx/fontRendering.ec

index 8cdf1d6..3d1c79c 100644 (file)
@@ -880,7 +880,7 @@ public class Font : struct
                FaceSetCharSize(fontEntry.face, size);
                height = (int)((fontEntry.face->size->metrics.height) >> 6); //* y_scale;
                if(!height)
-                  height = size * 96 / 72 + 4;
+                  height = (int)(size * 96 / 72 + 4);
                // printf("Font height is %d\n", height);
                this.fakeItalic = info.fakeItalic;
             }