aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGerd Moellmann1999-08-30 23:14:25 +0000
committerGerd Moellmann1999-08-30 23:14:25 +0000
commit5cb26370fb1b1e3ad7a13897aadfc26f960d2f1d (patch)
tree05a456e591dd2487bdc4d6243a4091eba1ada247 /src
parent0f799fd9a1f13456d064b971b80321f9581a0887 (diff)
downloademacs-5cb26370fb1b1e3ad7a13897aadfc26f960d2f1d.tar.gz
emacs-5cb26370fb1b1e3ad7a13897aadfc26f960d2f1d.zip
(FRAME_WINDOW_WIDTH_ARG): Add in FRAME_FLAGS_AREA_COLS
once instead of twice. (FRAME_LEFT_FLAGS_AREA_WIDTH): New.
Diffstat (limited to 'src')
-rw-r--r--src/frame.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/frame.h b/src/frame.h
index 8ff3091491a..3aca26d7534 100644
--- a/src/frame.h
+++ b/src/frame.h
@@ -511,7 +511,7 @@ typedef struct frame *FRAME_PTR;
511#define FRAME_WINDOW_WIDTH_ARG(f, width) \ 511#define FRAME_WINDOW_WIDTH_ARG(f, width) \
512 ((width) \ 512 ((width) \
513 + FRAME_SCROLL_BAR_WIDTH (f) \ 513 + FRAME_SCROLL_BAR_WIDTH (f) \
514 + 2 * FRAME_FLAGS_AREA_COLS (f)) 514 + FRAME_FLAGS_AREA_COLS (f))
515 515
516/* Maximum + 1 legitimate value for FRAME_CURSOR_X. */ 516/* Maximum + 1 legitimate value for FRAME_CURSOR_X. */
517#define FRAME_CURSOR_X_LIMIT(f) \ 517#define FRAME_CURSOR_X_LIMIT(f) \
@@ -660,17 +660,18 @@ extern Lisp_Object Vterminal_frame;
660 (FRAME_WINDOW_P (F) ? FRAME_DEFAULT_FONT_WIDTH (F) : 1) 660 (FRAME_WINDOW_P (F) ? FRAME_DEFAULT_FONT_WIDTH (F) : 1)
661 661
662/* Pixel width of areas used to display truncation marks, continuation 662/* Pixel width of areas used to display truncation marks, continuation
663 marks, overlay arrows. This is 0 for terminal frames. Other 663 marks, overlay arrows. This is 0 for terminal frames. */
664 terminal headers must define FRAME_X_TRUNC_WIDTH. */
665 664
666#ifdef HAVE_WINDOW_SYSTEM 665#ifdef HAVE_WINDOW_SYSTEM
667#define FRAME_FLAGS_AREA_COLS(F) \ 666#define FRAME_FLAGS_AREA_COLS(F) \
668 (FRAME_WINDOW_P ((F)) ? FRAME_X_FLAGS_AREA_COLS ((F)) : 0) 667 (FRAME_WINDOW_P ((F)) ? FRAME_X_FLAGS_AREA_COLS ((F)) : 0)
669#define FRAME_FLAGS_AREA_WIDTH(F) \ 668#define FRAME_FLAGS_AREA_WIDTH(F) FRAME_X_FLAGS_AREA_WIDTH (F)
670 (FRAME_FLAGS_AREA_COLS ((F)) * CANON_X_UNIT ((F))) 669#define FRAME_LEFT_FLAGS_AREA_WIDTH(F) FRAME_X_LEFT_FLAGS_AREA_WIDTH (F)
670
671#else 671#else
672#define FRAME_FLAGS_AREA_WIDTH(F) 0 672#define FRAME_FLAGS_AREA_WIDTH(F) 0
673#define FRAME_FLAGS_AREA_COLS(F) 0 673#define FRAME_FLAGS_AREA_COLS(F) 0
674#define FRAME_LEFT_FLAGS_AREA_WIDTH(F) 0
674#endif 675#endif
675 676
676 677