diff options
author | Behdad Esfahbod <behdad@gnome.org> | 2005-11-21 12:51:13 +0000 |
---|---|---|
committer | Behdad Esfahbod <behdad@src.gnome.org> | 2005-11-21 12:51:13 +0000 |
commit | fe80dbed58738cd6278fdca4070d29bb2b5a2c97 (patch) | |
tree | d321c4e66132b5db56c7d14810751aac2d219f2e | |
parent | 7eb44761eaca5feb3bb8b3fe3c1387154df36d11 (diff) | |
download | pango-fe80dbed58738cd6278fdca4070d29bb2b5a2c97.tar.gz |
Return double instead of int. (#321891, Sebastian Bacher)
2005-11-21 Behdad Esfahbod <behdad@gnome.org>
* pango/pangofc-fontmap.c (get_scaled_size): Return double instead of
int. (#321891, Sebastian Bacher)
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | pango/pangofc-fontmap.c | 4 |
2 files changed, 7 insertions, 2 deletions
@@ -1,5 +1,10 @@ 2005-11-21 Behdad Esfahbod <behdad@gnome.org> + * pango/pangofc-fontmap.c (get_scaled_size): Return double instead of + int. (#321891, Sebastian Bacher) + +2005-11-21 Behdad Esfahbod <behdad@gnome.org> + * examples/GLASS.utf8: Make the Kermit notice a "no warranty" clause, to comply with LPGL. diff --git a/pango/pangofc-fontmap.c b/pango/pangofc-fontmap.c index 5c465f85..1b8f74e3 100644 --- a/pango/pangofc-fontmap.c +++ b/pango/pangofc-fontmap.c @@ -1013,7 +1013,7 @@ get_unscaled_size (PangoFcFontMap *fcfontmap, * * Copyright 2005, Keith Packard */ -static int +static double get_scaled_size (FontsetHashKey *key) { PangoMatrix *matrix = &key->matrix; @@ -1042,7 +1042,7 @@ get_scaled_size (FontsetHashKey *key) else minor = 0.0; - return minor * (key->size / 1024.); + return minor * key->size / 1024.; } } |