summaryrefslogtreecommitdiff
path: root/src/w32font.c
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2021-11-14 15:02:39 +0200
committerEli Zaretskii <eliz@gnu.org>2021-11-14 15:02:40 +0200
commit96806a22fbb54573053fdb796ebde4b6284b98ae (patch)
tree64b4454e78224b267173f64957ce917e606db350 /src/w32font.c
parentc3f53d26043a4e4a91a3f1d140f080b6c8d190d2 (diff)
parenta56dd60d2fba9d873748ca3831ba61711628f698 (diff)
downloademacs-96806a22fbb54573053fdb796ebde4b6284b98ae.tar.gz
emacs-96806a22fbb54573053fdb796ebde4b6284b98ae.tar.bz2
emacs-96806a22fbb54573053fdb796ebde4b6284b98ae.zip
Merge from origin/emacs-28
a56dd60 Improve style and comments in font-related sources
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 752acdc9048..2d09f459f89 100644
--- a/src/w32font.c
+++ b/src/w32font.c
@@ -2022,13 +2022,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);