summaryrefslogtreecommitdiff
path: root/src/w32font.c
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2021-11-13 16:37:39 +0200
committerEli Zaretskii <eliz@gnu.org>2021-11-13 16:37:39 +0200
commita56dd60d2fba9d873748ca3831ba61711628f698 (patch)
tree434adad3f27e4777ec038f8499a34fda619f5e31 /src/w32font.c
parent42d4e24ff3f13ccbd401d93d70ecdee99b88a26d (diff)
downloademacs-a56dd60d2fba9d873748ca3831ba61711628f698.tar.gz
emacs-a56dd60d2fba9d873748ca3831ba61711628f698.tar.bz2
emacs-a56dd60d2fba9d873748ca3831ba61711628f698.zip
Improve style and comments in font-related sources
* src/w32font.c (fill_in_logfont): Stylistic changes. * src/font.h (font_property_index, font_select_entity): Add/improve comments.
Diffstat (limited to 'src/w32font.c')
-rw-r--r--src/w32font.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/w32font.c b/src/w32font.c
index 6b9ab0468cd..3025d0efa88 100644
--- a/src/w32font.c
+++ b/src/w32font.c
@@ -2019,13 +2019,9 @@ fill_in_logfont (struct frame *f, LOGFONT *logfont, Lisp_Object font_spec)
tmp = AREF (font_spec, FONT_DPI_INDEX);
if (FIXNUMP (tmp))
- {
- dpi = XFIXNUM (tmp);
- }
+ dpi = XFIXNUM (tmp);
else if (FLOATP (tmp))
- {
- dpi = (int) (XFLOAT_DATA (tmp) + 0.5);
- }
+ dpi = (int) (XFLOAT_DATA (tmp) + 0.5);
/* Height */
tmp = AREF (font_spec, FONT_SIZE_INDEX);