diff options
author | Kim F. Storm <storm@cua.dk> | 2001-12-01 01:35:14 +0000 |
---|---|---|
committer | Kim F. Storm <storm@cua.dk> | 2001-12-01 01:35:14 +0000 |
commit | 099603aedff1efaa76342b1f51dd62c83bda9408 (patch) | |
tree | 95de4ea634a0d4ec7c6e7efcf6d3fd00b544a121 /mac/inc | |
parent | d33c49e8795f8094ec2587e57203b1245af0d6ca (diff) | |
download | emacs-099603aedff1efaa76342b1f51dd62c83bda9408.tar.gz |
Merged fringe width related changes from xterm.h.
Diffstat (limited to 'mac/inc')
-rw-r--r-- | mac/inc/macterm.h | 30 |
1 files changed, 7 insertions, 23 deletions
diff --git a/mac/inc/macterm.h b/mac/inc/macterm.h index f105dcab8cd..340be4e35f3 100644 --- a/mac/inc/macterm.h +++ b/mac/inc/macterm.h @@ -358,7 +358,8 @@ struct mac_output { /* The extra width currently allotted for the areas in which truncation marks, continuation marks, and overlay arrows are displayed. */ - int fringes_extra; + int left_fringe_width, right_fringe_width; + int fringe_cols, fringes_extra; /* This is the gravity value for the specified window position. */ int win_gravity; @@ -451,39 +452,22 @@ typedef struct mac_output mac_output; #define FRAME_X_IMAGE_CACHE(F) FRAME_MAC_DISPLAY_INFO ((F))->image_cache -/* Pixel width of the fringe bitmaps drawn to indicate truncation, - continuation etc. */ - -#define FRAME_FRINGE_BITMAP_WIDTH(f) 8 -#define FRAME_FRINGE_BITMAP_HEIGHT(f) 8 - /* Total width of fringes 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_FRINGE_COLS(F) \ - ((2 * FRAME_FRINGE_BITMAP_WIDTH ((F)) + CANON_X_UNIT ((F)) - 1) \ - / CANON_X_UNIT ((F))) +#define FRAME_X_FRINGE_COLS(F) ((F)->output_data.mac->fringe_cols) /* Total width of fringes in pixels. */ -#define FRAME_X_FRINGE_WIDTH(F) \ - (FRAME_X_FRINGE_COLS ((F)) * CANON_X_UNIT ((F))) - -/* Pixel-width of the left fringe. */ - -#define FRAME_X_LEFT_FRINGE_WIDTH(F) \ - (FRAME_X_FRINGE_WIDTH (F) / 2) - -/* Pixel-width of the right fringe. 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_FRINGE_WIDTH(F) ((F)->output_data.mac->fringes_extra) -#define FRAME_X_RIGHT_FRINGE_WIDTH(F) \ - (FRAME_X_FRINGE_WIDTH (F) - FRAME_X_FRINGE_WIDTH (F) / 2) +/* Pixel-width of the left and right fringe. */ +#define FRAME_X_LEFT_FRINGE_WIDTH(F) ((F)->output_data.mac->left_fringe_width) +#define FRAME_X_RIGHT_FRINGE_WIDTH(F) ((F)->output_data.mac->right_fringe_width) /* Mac-specific scroll bar stuff. */ |