aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/dispextern.h37
1 files changed, 23 insertions, 14 deletions
diff --git a/src/dispextern.h b/src/dispextern.h
index 15ff0227dba..9b899c2105f 100644
--- a/src/dispextern.h
+++ b/src/dispextern.h
@@ -916,22 +916,30 @@ extern struct glyph_row scratch_glyph_row;
916 : 0) 916 : 0)
917 917
918/* Return the current height of the mode line of window W. If not 918/* Return the current height of the mode line of window W. If not
919 known from W's current glyph matrix, return a default based on the 919 known from current_mode_line_height, look at W's current glyph
920 height of the font of the face `modeline'. */ 920 matrix, or return a default based on the height of the font of the
921 921 face `mode-line'. */
922#define CURRENT_MODE_LINE_HEIGHT(W) \ 922
923 (MATRIX_MODE_LINE_HEIGHT ((W)->current_matrix) \ 923#define CURRENT_MODE_LINE_HEIGHT(W) \
924 ? MATRIX_MODE_LINE_HEIGHT ((W)->current_matrix) \ 924 (current_mode_line_height >= 0 \
925 : estimate_mode_line_height (XFRAME ((W)->frame), MODE_LINE_FACE_ID)) 925 ? current_mode_line_height \
926 : (MATRIX_MODE_LINE_HEIGHT ((W)->current_matrix) \
927 ? MATRIX_MODE_LINE_HEIGHT ((W)->current_matrix) \
928 : estimate_mode_line_height (XFRAME ((W)->frame), \
929 MODE_LINE_FACE_ID)))
926 930
927/* Return the current height of the top line of window W. If not 931/* Return the current height of the top line of window W. If not
928 known from W's current glyph matrix, return an estimation based on 932 known from current_header_line_height, look at W's current glyph
929 the height of the font of the face `top-line'. */ 933 matrix, or return an estimation based on the height of the font of
930 934 the face `header-line'. */
931#define CURRENT_HEADER_LINE_HEIGHT(W) \ 935
932 (MATRIX_HEADER_LINE_HEIGHT ((W)->current_matrix) \ 936#define CURRENT_HEADER_LINE_HEIGHT(W) \
933 ? MATRIX_HEADER_LINE_HEIGHT ((W)->current_matrix) \ 937 (current_header_line_height >= 0 \
934 : estimate_mode_line_height (XFRAME ((W)->frame), HEADER_LINE_FACE_ID)) 938 ? current_header_line_height \
939 : (MATRIX_HEADER_LINE_HEIGHT ((W)->current_matrix) \
940 ? MATRIX_HEADER_LINE_HEIGHT ((W)->current_matrix) \
941 : estimate_mode_line_height (XFRAME ((W)->frame), \
942 HEADER_LINE_FACE_ID)))
935 943
936/* Return the height of the desired mode line of window W. */ 944/* Return the height of the desired mode line of window W. */
937 945
@@ -2154,6 +2162,7 @@ extern int redisplaying_p;
2154extern Lisp_Object Vimage_types; 2162extern Lisp_Object Vimage_types;
2155extern void add_to_log P_ ((char *, Lisp_Object, Lisp_Object)); 2163extern void add_to_log P_ ((char *, Lisp_Object, Lisp_Object));
2156extern int help_echo_showing_p; 2164extern int help_echo_showing_p;
2165extern int current_mode_line_height, current_header_line_height;
2157 2166
2158/* Defined in sysdep.c */ 2167/* Defined in sysdep.c */
2159 2168