aboutsummaryrefslogtreecommitdiffstats
path: root/mac
diff options
context:
space:
mode:
authorKim F. Storm2001-11-16 13:19:19 +0000
committerKim F. Storm2001-11-16 13:19:19 +0000
commitf76e1b5f70328303f325f771945b53c475bbcd9f (patch)
tree0081da4d3f4542cbddf13ba83ee0edf38a19c059 /mac
parenta0a1947c5a1786c7297e3c843ea52b8c8b972b00 (diff)
downloademacs-f76e1b5f70328303f325f771945b53c475bbcd9f.tar.gz
emacs-f76e1b5f70328303f325f771945b53c475bbcd9f.zip
Fringe cleanup.
Comment fixes. Use renamed symbols. (fringes_extra): Renamed from flags_areas_extra. (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH. (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT. (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS. (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH. (FRAME_X_LEFT_FRINGE_WIDTH): Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH. (FRAME_X_RIGHT_FRINGE_WIDTH): Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
Diffstat (limited to 'mac')
-rw-r--r--mac/inc/macterm.h36
1 files changed, 18 insertions, 18 deletions
diff --git a/mac/inc/macterm.h b/mac/inc/macterm.h
index 7145e57fa71..f105dcab8cd 100644
--- a/mac/inc/macterm.h
+++ b/mac/inc/macterm.h
@@ -358,7 +358,7 @@ struct mac_output {
358 /* The extra width currently allotted for the areas in which 358 /* The extra width currently allotted for the areas in which
359 truncation marks, continuation marks, and overlay arrows are 359 truncation marks, continuation marks, and overlay arrows are
360 displayed. */ 360 displayed. */
361 int flags_areas_extra; 361 int fringes_extra;
362 362
363 /* This is the gravity value for the specified window position. */ 363 /* This is the gravity value for the specified window position. */
364 int win_gravity; 364 int win_gravity;
@@ -451,38 +451,38 @@ typedef struct mac_output mac_output;
451#define FRAME_X_IMAGE_CACHE(F) FRAME_MAC_DISPLAY_INFO ((F))->image_cache 451#define FRAME_X_IMAGE_CACHE(F) FRAME_MAC_DISPLAY_INFO ((F))->image_cache
452 452
453 453
454/* Pixel width of the bitmaps drawn to indicate truncation, 454/* Pixel width of the fringe bitmaps drawn to indicate truncation,
455 continuation etc. */ 455 continuation etc. */
456 456
457#define FRAME_FLAGS_BITMAP_WIDTH(f) 8 457#define FRAME_FRINGE_BITMAP_WIDTH(f) 8
458#define FRAME_FLAGS_BITMAP_HEIGHT(f) 8 458#define FRAME_FRINGE_BITMAP_HEIGHT(f) 8
459 459
460/* Total width of areas reserved for drawing truncation bitmaps, 460/* Total width of fringes reserved for drawing truncation bitmaps,
461 continuation bitmaps and alike. The width is in canonical char 461 continuation bitmaps and alike. The width is in canonical char
462 units of the frame. This must currently be the case because window 462 units of the frame. This must currently be the case because window
463 sizes aren't pixel values. If it weren't the case, we wouldn't be 463 sizes aren't pixel values. If it weren't the case, we wouldn't be
464 able to split windows horizontally nicely. */ 464 able to split windows horizontally nicely. */
465 465
466#define FRAME_X_FLAGS_AREA_COLS(F) \ 466#define FRAME_X_FRINGE_COLS(F) \
467 ((2 * FRAME_FLAGS_BITMAP_WIDTH ((F)) + CANON_X_UNIT ((F)) - 1) \ 467 ((2 * FRAME_FRINGE_BITMAP_WIDTH ((F)) + CANON_X_UNIT ((F)) - 1) \
468 / CANON_X_UNIT ((F))) 468 / CANON_X_UNIT ((F)))
469 469
470/* Total width of flags areas in pixels. */ 470/* Total width of fringes in pixels. */
471 471
472#define FRAME_X_FLAGS_AREA_WIDTH(F) \ 472#define FRAME_X_FRINGE_WIDTH(F) \
473 (FRAME_X_FLAGS_AREA_COLS ((F)) * CANON_X_UNIT ((F))) 473 (FRAME_X_FRINGE_COLS ((F)) * CANON_X_UNIT ((F)))
474 474
475/* Pixel-width of the left flags area. */ 475/* Pixel-width of the left fringe. */
476 476
477#define FRAME_X_LEFT_FLAGS_AREA_WIDTH(F) \ 477#define FRAME_X_LEFT_FRINGE_WIDTH(F) \
478 (FRAME_X_FLAGS_AREA_WIDTH (F) / 2) 478 (FRAME_X_FRINGE_WIDTH (F) / 2)
479 479
480/* Pixel-width of the right flags area. Note that we are doing 480/* Pixel-width of the right fringe. Note that we are doing
481 integer arithmetic here, so don't loose a pixel if the total 481 integer arithmetic here, so don't loose a pixel if the total
482 width is an odd number. */ 482 width is an odd number. */
483 483
484#define FRAME_X_RIGHT_FLAGS_AREA_WIDTH(F) \ 484#define FRAME_X_RIGHT_FRINGE_WIDTH(F) \
485 (FRAME_X_FLAGS_AREA_WIDTH (F) - FRAME_X_FLAGS_AREA_WIDTH (F) / 2) 485 (FRAME_X_FRINGE_WIDTH (F) - FRAME_X_FRINGE_WIDTH (F) / 2)
486 486
487 487
488 488
@@ -632,7 +632,7 @@ struct scroll_bar {
632#define CHAR_TO_PIXEL_WIDTH(f, width) \ 632#define CHAR_TO_PIXEL_WIDTH(f, width) \
633 (CHAR_TO_PIXEL_COL (f, width) \ 633 (CHAR_TO_PIXEL_COL (f, width) \
634 + (f)->output_data.mac->vertical_scroll_bar_extra \ 634 + (f)->output_data.mac->vertical_scroll_bar_extra \
635 + (f)->output_data.mac->flags_areas_extra \ 635 + (f)->output_data.mac->fringes_extra \
636 + (f)->output_data.mac->internal_border_width) 636 + (f)->output_data.mac->internal_border_width)
637#define CHAR_TO_PIXEL_HEIGHT(f, height) \ 637#define CHAR_TO_PIXEL_HEIGHT(f, height) \
638 (CHAR_TO_PIXEL_ROW (f, height) \ 638 (CHAR_TO_PIXEL_ROW (f, height) \
@@ -653,7 +653,7 @@ struct scroll_bar {
653#define PIXEL_TO_CHAR_WIDTH(f, width) \ 653#define PIXEL_TO_CHAR_WIDTH(f, width) \
654 (PIXEL_TO_CHAR_COL (f, ((width) \ 654 (PIXEL_TO_CHAR_COL (f, ((width) \
655 - (f)->output_data.mac->internal_border_width \ 655 - (f)->output_data.mac->internal_border_width \
656 - (f)->output_data.mac->flags_areas_extra \ 656 - (f)->output_data.mac->fringes_extra \
657 - (f)->output_data.mac->vertical_scroll_bar_extra))) 657 - (f)->output_data.mac->vertical_scroll_bar_extra)))
658#define PIXEL_TO_CHAR_HEIGHT(f, height) \ 658#define PIXEL_TO_CHAR_HEIGHT(f, height) \
659 (PIXEL_TO_CHAR_ROW (f, ((height) \ 659 (PIXEL_TO_CHAR_ROW (f, ((height) \