summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBob Ham <rah@bash.sh>2009-09-15 14:28:12 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2009-09-15 14:28:12 +1000
commit18c5e2ff1097880e8dea951079ae49a93ec315b0 (patch)
treea1aa0f06f1519e8990073ceeb891f65fd3a26d77 /src
parent0045b2555b288099c90b65f97bd4b4a5ebc8c688 (diff)
Fixed int(*)()->double cast warning
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'src')
-rw-r--r--src/fontfile/fontdir.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/fontfile/fontdir.c b/src/fontfile/fontdir.c
index 8b446a9..70f1b0f 100644
--- a/src/fontfile/fontdir.c
+++ b/src/fontfile/fontdir.c
@@ -747,10 +747,11 @@ FontFileAddFontFile (FontDirectoryPtr dir, char *fontName, char *fileName)
{
FontResolutionPtr resolution;
int num;
+ int default_point_size = GetDefaultPointSize();
extra->defaults.point_matrix[0] =
extra->defaults.point_matrix[3] =
- (double)GetDefaultPointSize() / 10.0;
+ (double)default_point_size / 10.0;
extra->defaults.point_matrix[1] =
extra->defaults.point_matrix[2] = 0.0;
extra->defaults.values_supplied =