[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
feature/pgtk 3925fd7: Fix coding style of a recent change
From: |
Po Lu |
Subject: |
feature/pgtk 3925fd7: Fix coding style of a recent change |
Date: |
Sat, 4 Dec 2021 06:45:42 -0500 (EST) |
branch: feature/pgtk
commit 3925fd777f93481932abbba45d6f139746fd3231
Author: Po Lu <luangruo@yahoo.com>
Commit: Po Lu <luangruo@yahoo.com>
Fix coding style of a recent change
* src/pgtkfns.c (update_watched_scale_factor): Fix coding style.
---
src/pgtkfns.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/pgtkfns.c b/src/pgtkfns.c
index febc90a..7459145 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;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- feature/pgtk 3925fd7: Fix coding style of a recent change,
Po Lu <=