# HG changeset patch # User Gerd Moellmann # Date 936054880 0 # Node ID 7057ab2173155109c8ca4de653f3e3367e776f74 # Parent 1b6d98e8c3acadfefa10d8221dc9e6b02e4ff417 (FRAME_X_FLAGS_AREA_COLS): Define it as the total width of both margins. (FRAME_X_FLAGS_AREA_WIDTH): Likewise. (FRAME_X_LEFT_FLAGS_AREA_WIDTH): New. (FRAME_X_RIGHT_FLAGS_AREA_WIDTH): New. diff -r 1b6d98e8c3ac -r 7057ab217315 src/xterm.h --- a/src/xterm.h Mon Aug 30 23:14:36 1999 +0000 +++ b/src/xterm.h Mon Aug 30 23:14:40 1999 +0000 @@ -630,19 +630,34 @@ #define FRAME_FLAGS_BITMAP_WIDTH(f) 8 #define FRAME_FLAGS_BITMAP_HEIGHT(f) 8 -/* Width of a single area reserved for drawing truncation bitmaps, +/* Total width of a areas reserved for drawing truncation bitmaps, continuation bitmaps and alike. The width is in canonical char units of the frame. This must currently be the case because window sizes aren't pixel values. If it weren't the case, we wouldn't be able to split windows horizontally nicely. */ -#define FRAME_X_FLAGS_AREA_COLS(F) \ - ((FRAME_FLAGS_BITMAP_WIDTH ((F)) + CANON_X_UNIT ((F)) - 1) \ +#define FRAME_X_FLAGS_AREA_COLS(F) \ + ((2 * FRAME_FLAGS_BITMAP_WIDTH ((F)) + CANON_X_UNIT ((F)) - 1) \ / CANON_X_UNIT ((F))) +/* Total width of flags areas in pixels. */ + #define FRAME_X_FLAGS_AREA_WIDTH(F) \ (FRAME_X_FLAGS_AREA_COLS ((F)) * CANON_X_UNIT ((F))) +/* Pixel-width of the left flags area. */ + +#define FRAME_X_LEFT_FLAGS_AREA_WIDTH(F) \ + (FRAME_X_FLAGS_AREA_WIDTH (F) / 2) + +/* Pixel-width of the right flags area. Note that we are doing + integer arithmetic here, so don't loose a pixel if the total + width is an odd number. */ + +#define FRAME_X_RIGHT_FLAGS_AREA_WIDTH(F) \ + (FRAME_X_FLAGS_AREA_WIDTH (F) - FRAME_X_FLAGS_AREA_WIDTH (F) / 2) + + /* X-specific scroll bar stuff. */