diff options
author | Po Lu <luangruo@yahoo.com> | 2021-12-04 19:45:12 +0800 |
---|---|---|
committer | Po Lu <luangruo@yahoo.com> | 2021-12-04 19:45:12 +0800 |
commit | 3925fd777f93481932abbba45d6f139746fd3231 (patch) | |
tree | d3e23c82c55cea229672d3be2e5ec43cae9490b3 /src/pgtkfns.c | |
parent | 6d7a1123b44ecc4b0f5f356df1eaea0b74e1e855 (diff) | |
download | emacs-3925fd777f93481932abbba45d6f139746fd3231.tar.gz emacs-3925fd777f93481932abbba45d6f139746fd3231.tar.bz2 emacs-3925fd777f93481932abbba45d6f139746fd3231.zip |
Fix coding style of a recent change
* src/pgtkfns.c (update_watched_scale_factor): Fix coding style.
Diffstat (limited to 'src/pgtkfns.c')
-rw-r--r-- | src/pgtkfns.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/pgtkfns.c b/src/pgtkfns.c index febc90ad4e1..74591452fb6 100644 --- a/src/pgtkfns.c +++ b/src/pgtkfns.c @@ -1180,11 +1180,12 @@ pgtk_default_font_parameter (struct frame *f, Lisp_Object parms) RES_TYPE_STRING); } -static void update_watched_scale_factor(struct atimer *timer) +static void +update_watched_scale_factor (struct atimer *timer) { struct frame *f = timer->client_data; - double scale_factor = FRAME_SCALE_FACTOR (f); + if (scale_factor != FRAME_X_OUTPUT (f)->watched_scale_factor) { FRAME_X_OUTPUT (f)->watched_scale_factor = scale_factor; |