Ecere Software
/
sdk
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
6140362
)
ecere/gfx/fontRendering: Fixed warning
author
Jerome St-Louis
<jerome@ecere.com>
Thu, 4 Aug 2016 12:53:49 +0000
(08:53 -0400)
committer
Jerome St-Louis
<jerome@ecere.com>
Thu, 4 Aug 2016 12:53:49 +0000
(08:53 -0400)
ecere/src/gfx/fontRendering.ec
patch
|
blob
|
history
diff --git
a/ecere/src/gfx/fontRendering.ec
b/ecere/src/gfx/fontRendering.ec
index
8cdf1d6
..
3d1c79c
100644
(file)
--- a/
ecere/src/gfx/fontRendering.ec
+++ b/
ecere/src/gfx/fontRendering.ec
@@
-880,7
+880,7
@@
public class Font : struct
FaceSetCharSize(fontEntry.face, size);
height = (int)((fontEntry.face->size->metrics.height) >> 6); //* y_scale;
if(!height)
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;
}
// printf("Font height is %d\n", height);
this.fakeItalic = info.fakeItalic;
}