aboutsummaryrefslogtreecommitdiff
path: root/libXfont/src/fontfile/fontdir.c
diff options
context:
space:
mode:
Diffstat (limited to 'libXfont/src/fontfile/fontdir.c')
-rw-r--r--libXfont/src/fontfile/fontdir.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libXfont/src/fontfile/fontdir.c b/libXfont/src/fontfile/fontdir.c
index 8b446a975..70f1b0f44 100644
--- a/libXfont/src/fontfile/fontdir.c
+++ b/libXfont/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 =