aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDmitry Antipov2013-09-15 11:06:05 +0400
committerDmitry Antipov2013-09-15 11:06:05 +0400
commitc7cc32f7ab5a5a0b4037cb17b84b396fd079747b (patch)
tree12a9b53a4d331a0fa301bc0b155e5ac10fb59e92 /src
parent07013c68954574404c3f7fc640ec4bfc34a4e3b8 (diff)
downloademacs-c7cc32f7ab5a5a0b4037cb17b84b396fd079747b.tar.gz
emacs-c7cc32f7ab5a5a0b4037cb17b84b396fd079747b.zip
* frame.h (FRAME_SMALLEST_CHAR_WIDTH, FRAME_SMALLEST_FONT_HEIGHT):
Define once here... * nsterm.h, w32term.h, xterm.h: ...and not here.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog3
-rw-r--r--src/frame.h9
-rw-r--r--src/nsterm.h4
-rw-r--r--src/w32term.h10
-rw-r--r--src/xterm.h10
5 files changed, 12 insertions, 24 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 102818e04a5..3473ec9ab02 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -2,6 +2,9 @@
2 2
3 * xterm.h (FRAME_X_SCREEN_NUMBER): Add comment. 3 * xterm.h (FRAME_X_SCREEN_NUMBER): Add comment.
4 (BLACK_PIX_DEFAULT, WHITE_PIX_DEFAULT): Use FRAME_X_SCREEN_NUMBER. 4 (BLACK_PIX_DEFAULT, WHITE_PIX_DEFAULT): Use FRAME_X_SCREEN_NUMBER.
5 * frame.h (FRAME_SMALLEST_CHAR_WIDTH, FRAME_SMALLEST_FONT_HEIGHT):
6 Define once here...
7 * nsterm.h, w32term.h, xterm.h: ...and not here.
5 8
62013-09-14 Eli Zaretskii <eliz@gnu.org> 92013-09-14 Eli Zaretskii <eliz@gnu.org>
7 10
diff --git a/src/frame.h b/src/frame.h
index ea550f4a2fa..d8a6d380090 100644
--- a/src/frame.h
+++ b/src/frame.h
@@ -1131,6 +1131,15 @@ extern Lisp_Object selected_frame;
1131 (FRAME_PIXEL_Y_TO_LINE (f, ((height) \ 1131 (FRAME_PIXEL_Y_TO_LINE (f, ((height) \
1132 - FRAME_INTERNAL_BORDER_WIDTH (f)))) 1132 - FRAME_INTERNAL_BORDER_WIDTH (f))))
1133 1133
1134/* Value is the smallest width of any character in any font on frame F. */
1135
1136#define FRAME_SMALLEST_CHAR_WIDTH(f) \
1137 FRAME_DISPLAY_INFO (f)->smallest_char_width
1138
1139/* Value is the smallest height of any font on frame F. */
1140
1141#define FRAME_SMALLEST_FONT_HEIGHT(f) \
1142 FRAME_DISPLAY_INFO (f)->smallest_font_height
1134 1143
1135/*********************************************************************** 1144/***********************************************************************
1136 Frame Parameters 1145 Frame Parameters
diff --git a/src/nsterm.h b/src/nsterm.h
index 487422b13db..5f89267be53 100644
--- a/src/nsterm.h
+++ b/src/nsterm.h
@@ -746,10 +746,6 @@ struct x_output
746 746
747#define FRAME_FONTSET(f) ((f)->output_data.ns->fontset) 747#define FRAME_FONTSET(f) ((f)->output_data.ns->fontset)
748 748
749#define FRAME_SMALLEST_CHAR_WIDTH(f) \
750 (FRAME_DISPLAY_INFO (f)->smallest_char_width)
751#define FRAME_SMALLEST_FONT_HEIGHT(f) \
752 (FRAME_DISPLAY_INFO (f)->smallest_font_height)
753#define FRAME_BASELINE_OFFSET(f) ((f)->output_data.ns->baseline_offset) 749#define FRAME_BASELINE_OFFSET(f) ((f)->output_data.ns->baseline_offset)
754#define BLACK_PIX_DEFAULT(f) 0x000000 750#define BLACK_PIX_DEFAULT(f) 0x000000
755#define WHITE_PIX_DEFAULT(f) 0xFFFFFF 751#define WHITE_PIX_DEFAULT(f) 0xFFFFFF
diff --git a/src/w32term.h b/src/w32term.h
index 5146fa8ef3a..9c7134ddf11 100644
--- a/src/w32term.h
+++ b/src/w32term.h
@@ -382,16 +382,6 @@ extern struct w32_output w32term_display;
382/* This is the `Display *' which frame F is on. */ 382/* This is the `Display *' which frame F is on. */
383#define FRAME_X_DISPLAY(f) (0) 383#define FRAME_X_DISPLAY(f) (0)
384 384
385/* Value is the smallest width of any character in any font on frame F. */
386
387#define FRAME_SMALLEST_CHAR_WIDTH(F) \
388 FRAME_DISPLAY_INFO(F)->smallest_char_width
389
390/* Value is the smallest height of any font on frame F. */
391
392#define FRAME_SMALLEST_FONT_HEIGHT(F) \
393 FRAME_DISPLAY_INFO(F)->smallest_font_height
394
395#define FRAME_NORMAL_PLACEMENT(F) ((F)->output_data.w32->normal_placement) 385#define FRAME_NORMAL_PLACEMENT(F) ((F)->output_data.w32->normal_placement)
396#define FRAME_PREV_FSMODE(F) ((F)->output_data.w32->prev_fsmode) 386#define FRAME_PREV_FSMODE(F) ((F)->output_data.w32->prev_fsmode)
397 387
diff --git a/src/xterm.h b/src/xterm.h
index aa128cb5072..4f6b545cb45 100644
--- a/src/xterm.h
+++ b/src/xterm.h
@@ -734,16 +734,6 @@ enum
734#define FRAME_XIC_STYLE(f) ((f)->output_data.x->xic_style) 734#define FRAME_XIC_STYLE(f) ((f)->output_data.x->xic_style)
735#define FRAME_XIC_FONTSET(f) ((f)->output_data.x->xic_xfs) 735#define FRAME_XIC_FONTSET(f) ((f)->output_data.x->xic_xfs)
736 736
737/* Value is the smallest width of any character in any font on frame F. */
738
739#define FRAME_SMALLEST_CHAR_WIDTH(F) \
740 FRAME_DISPLAY_INFO(F)->smallest_char_width
741
742/* Value is the smallest height of any font on frame F. */
743
744#define FRAME_SMALLEST_FONT_HEIGHT(F) \
745 FRAME_DISPLAY_INFO(F)->smallest_font_height
746
747/* X-specific scroll bar stuff. */ 737/* X-specific scroll bar stuff. */
748 738
749/* We represent scroll bars as lisp vectors. This allows us to place 739/* We represent scroll bars as lisp vectors. This allows us to place