diff options
author | Yuuki Harano <masm+github@masm11.me> | 2021-04-06 00:11:36 +0900 |
---|---|---|
committer | Yuuki Harano <masm+github@masm11.me> | 2021-04-06 00:11:36 +0900 |
commit | 8c7453632e8f45ed65ce814eafc0a1af637774c1 (patch) | |
tree | a7248619441ffb6a77a81a7b76ade2b7294f7719 /src/frame.h | |
parent | 5d2f319eec33fea2cb29a02210952ee590b4b21b (diff) | |
parent | 0342354c155728f8d55005bd34a66e1ab3179cc7 (diff) | |
download | emacs-8c7453632e8f45ed65ce814eafc0a1af637774c1.tar.gz emacs-8c7453632e8f45ed65ce814eafc0a1af637774c1.tar.bz2 emacs-8c7453632e8f45ed65ce814eafc0a1af637774c1.zip |
Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs into feature/pgtk
Diffstat (limited to 'src/frame.h')
-rw-r--r-- | src/frame.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/frame.h b/src/frame.h index bb05448cffb..ab7d3c5186d 100644 --- a/src/frame.h +++ b/src/frame.h @@ -916,6 +916,13 @@ default_pixels_per_inch_y (void) (WINDOWP (f->minibuffer_window) \ && XFRAME (XWINDOW (f->minibuffer_window)->frame) == f) +/* Scale factor of frame F. */ +#if defined HAVE_NS +# define FRAME_SCALE_FACTOR(f) (FRAME_NS_P (f) ? ns_frame_scale_factor (f) : 1) +#else +# define FRAME_SCALE_FACTOR(f) 1 +#endif + /* Pixel width of frame F. */ #define FRAME_PIXEL_WIDTH(f) ((f)->pixel_width) |