diff options
author | Yuuki Harano <masm+github@masm11.me> | 2021-01-24 00:47:50 +0900 |
---|---|---|
committer | Yuuki Harano <masm+github@masm11.me> | 2021-01-24 00:47:50 +0900 |
commit | e9608601e5d5f45be36a8f833a98230086e628a8 (patch) | |
tree | b8906520d70bdc75ba6d1b2ebe49eb9f775c464b /src/frame.h | |
parent | f7fa39fbda29d80930d6be97a4ad2f2818b590ff (diff) | |
download | emacs-e9608601e5d5f45be36a8f833a98230086e628a8.tar.gz emacs-e9608601e5d5f45be36a8f833a98230086e628a8.tar.bz2 emacs-e9608601e5d5f45be36a8f833a98230086e628a8.zip |
Add scale factor in display-monitor-attributes-list.
* lisp/frame.el (display-monitor-attributes-list): Add the comment.
* src/frame.c (make_monitor_attribute_list): Include the scale factor value.
(syms_of_frame): Declare intern'ed scale-factor.
* src/frame.h (struct MonitorInfo): Add scale_factor member.
* src/pgtkfns.c (Fpgtk_display_monitor_attributes_list): Set the value.
Diffstat (limited to 'src/frame.h')
-rw-r--r-- | src/frame.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/frame.h b/src/frame.h index 10cb3f52e5e..7372e74cfef 100644 --- a/src/frame.h +++ b/src/frame.h @@ -1746,6 +1746,9 @@ struct MonitorInfo { Emacs_Rectangle geom, work; int mm_width, mm_height; char *name; +#ifdef HAVE_PGTK + double scale_factor; +#endif }; extern void free_monitors (struct MonitorInfo *monitors, int n_monitors); |