diff options
| author | Kim F. Storm | 2001-11-16 13:19:19 +0000 |
|---|---|---|
| committer | Kim F. Storm | 2001-11-16 13:19:19 +0000 |
| commit | f76e1b5f70328303f325f771945b53c475bbcd9f (patch) | |
| tree | 0081da4d3f4542cbddf13ba83ee0edf38a19c059 /src | |
| parent | a0a1947c5a1786c7297e3c843ea52b8c8b972b00 (diff) | |
| download | emacs-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 'src')
| -rw-r--r-- | src/w32term.h | 36 | ||||
| -rw-r--r-- | src/xterm.h | 36 |
2 files changed, 36 insertions, 36 deletions
diff --git a/src/w32term.h b/src/w32term.h index 509a9efb4f8..bed675973bb 100644 --- a/src/w32term.h +++ b/src/w32term.h | |||
| @@ -385,7 +385,7 @@ struct w32_output | |||
| 385 | /* The extra width currently allotted for the areas in which | 385 | /* The extra width currently allotted for the areas in which |
| 386 | truncation marks, continuation marks, and overlay arrows are | 386 | truncation marks, continuation marks, and overlay arrows are |
| 387 | displayed. */ | 387 | displayed. */ |
| 388 | int flags_areas_extra; | 388 | int fringes_extra; |
| 389 | 389 | ||
| 390 | /* This is the gravity value for the specified window position. */ | 390 | /* This is the gravity value for the specified window position. */ |
| 391 | int win_gravity; | 391 | int win_gravity; |
| @@ -468,38 +468,38 @@ extern struct w32_output w32term_display; | |||
| 468 | #define FRAME_X_IMAGE_CACHE(F) FRAME_W32_DISPLAY_INFO ((F))->image_cache | 468 | #define FRAME_X_IMAGE_CACHE(F) FRAME_W32_DISPLAY_INFO ((F))->image_cache |
| 469 | 469 | ||
| 470 | 470 | ||
| 471 | /* Pixel width of the bitmaps drawn to indicate truncation, | 471 | /* Pixel width of the fringe bitmaps drawn to indicate truncation, |
| 472 | continuation etc. */ | 472 | continuation etc. */ |
| 473 | 473 | ||
| 474 | #define FRAME_FLAGS_BITMAP_WIDTH(f) 8 | 474 | #define FRAME_FRINGE_BITMAP_WIDTH(f) 8 |
| 475 | #define FRAME_FLAGS_BITMAP_HEIGHT(f) 8 | 475 | #define FRAME_FRINGE_BITMAP_HEIGHT(f) 8 |
| 476 | 476 | ||
| 477 | /* Total width of areas reserved for drawing truncation bitmaps, | 477 | /* Total width of fringes reserved for drawing truncation bitmaps, |
| 478 | continuation bitmaps and alike. The width is in canonical char | 478 | continuation bitmaps and alike. The width is in canonical char |
| 479 | units of the frame. This must currently be the case because window | 479 | units of the frame. This must currently be the case because window |
| 480 | sizes aren't pixel values. If it weren't the case, we wouldn't be | 480 | sizes aren't pixel values. If it weren't the case, we wouldn't be |
| 481 | able to split windows horizontally nicely. */ | 481 | able to split windows horizontally nicely. */ |
| 482 | 482 | ||
| 483 | #define FRAME_X_FLAGS_AREA_COLS(F) \ | 483 | #define FRAME_X_FRINGE_COLS(F) \ |
| 484 | ((2 * FRAME_FLAGS_BITMAP_WIDTH ((F)) + CANON_X_UNIT ((F)) - 1) \ | 484 | ((2 * FRAME_FRINGE_BITMAP_WIDTH ((F)) + CANON_X_UNIT ((F)) - 1) \ |
| 485 | / CANON_X_UNIT ((F))) | 485 | / CANON_X_UNIT ((F))) |
| 486 | 486 | ||
| 487 | /* Total width of flags areas in pixels. */ | 487 | /* Total width of fringes in pixels. */ |
| 488 | 488 | ||
| 489 | #define FRAME_X_FLAGS_AREA_WIDTH(F) \ | 489 | #define FRAME_X_FRINGE_WIDTH(F) \ |
| 490 | (FRAME_X_FLAGS_AREA_COLS ((F)) * CANON_X_UNIT ((F))) | 490 | (FRAME_X_FRINGE_COLS ((F)) * CANON_X_UNIT ((F))) |
| 491 | 491 | ||
| 492 | /* Pixel-width of the left flags area. */ | 492 | /* Pixel-width of the left fringe. */ |
| 493 | 493 | ||
| 494 | #define FRAME_X_LEFT_FLAGS_AREA_WIDTH(F) \ | 494 | #define FRAME_X_LEFT_FRINGE_WIDTH(F) \ |
| 495 | (FRAME_X_FLAGS_AREA_WIDTH (F) / 2) | 495 | (FRAME_X_FRINGE_WIDTH (F) / 2) |
| 496 | 496 | ||
| 497 | /* Pixel-width of the right flags area. Note that we are doing | 497 | /* Pixel-width of the right fringe. Note that we are doing |
| 498 | integer arithmetic here, so don't loose a pixel if the total | 498 | integer arithmetic here, so don't loose a pixel if the total |
| 499 | width is an odd number. */ | 499 | width is an odd number. */ |
| 500 | 500 | ||
| 501 | #define FRAME_X_RIGHT_FLAGS_AREA_WIDTH(F) \ | 501 | #define FRAME_X_RIGHT_FRINGE_WIDTH(F) \ |
| 502 | (FRAME_X_FLAGS_AREA_WIDTH (F) - FRAME_X_FLAGS_AREA_WIDTH (F) / 2) | 502 | (FRAME_X_FRINGE_WIDTH (F) - FRAME_X_FRINGE_WIDTH (F) / 2) |
| 503 | 503 | ||
| 504 | 504 | ||
| 505 | 505 | ||
| @@ -657,7 +657,7 @@ struct scroll_bar { | |||
| 657 | #define CHAR_TO_PIXEL_WIDTH(f, width) \ | 657 | #define CHAR_TO_PIXEL_WIDTH(f, width) \ |
| 658 | (CHAR_TO_PIXEL_COL (f, width) \ | 658 | (CHAR_TO_PIXEL_COL (f, width) \ |
| 659 | + (f)->output_data.w32->vertical_scroll_bar_extra \ | 659 | + (f)->output_data.w32->vertical_scroll_bar_extra \ |
| 660 | + (f)->output_data.w32->flags_areas_extra \ | 660 | + (f)->output_data.w32->fringes_extra \ |
| 661 | + (f)->output_data.w32->internal_border_width) | 661 | + (f)->output_data.w32->internal_border_width) |
| 662 | #define CHAR_TO_PIXEL_HEIGHT(f, height) \ | 662 | #define CHAR_TO_PIXEL_HEIGHT(f, height) \ |
| 663 | (CHAR_TO_PIXEL_ROW (f, height) \ | 663 | (CHAR_TO_PIXEL_ROW (f, height) \ |
| @@ -678,7 +678,7 @@ struct scroll_bar { | |||
| 678 | #define PIXEL_TO_CHAR_WIDTH(f, width) \ | 678 | #define PIXEL_TO_CHAR_WIDTH(f, width) \ |
| 679 | (PIXEL_TO_CHAR_COL (f, ((width) \ | 679 | (PIXEL_TO_CHAR_COL (f, ((width) \ |
| 680 | - (f)->output_data.w32->internal_border_width \ | 680 | - (f)->output_data.w32->internal_border_width \ |
| 681 | - (f)->output_data.w32->flags_areas_extra \ | 681 | - (f)->output_data.w32->fringes_extra \ |
| 682 | - (f)->output_data.w32->vertical_scroll_bar_extra))) | 682 | - (f)->output_data.w32->vertical_scroll_bar_extra))) |
| 683 | #define PIXEL_TO_CHAR_HEIGHT(f, height) \ | 683 | #define PIXEL_TO_CHAR_HEIGHT(f, height) \ |
| 684 | (PIXEL_TO_CHAR_ROW (f, ((height) \ | 684 | (PIXEL_TO_CHAR_ROW (f, ((height) \ |
diff --git a/src/xterm.h b/src/xterm.h index c59de131cc9..f9d3d7a809f 100644 --- a/src/xterm.h +++ b/src/xterm.h | |||
| @@ -537,7 +537,7 @@ struct x_output | |||
| 537 | /* The extra width currently allotted for the areas in which | 537 | /* The extra width currently allotted for the areas in which |
| 538 | truncation marks, continuation marks, and overlay arrows are | 538 | truncation marks, continuation marks, and overlay arrows are |
| 539 | displayed. */ | 539 | displayed. */ |
| 540 | int flags_areas_extra; | 540 | int fringes_extra; |
| 541 | 541 | ||
| 542 | /* This is the gravity value for the specified window position. */ | 542 | /* This is the gravity value for the specified window position. */ |
| 543 | int win_gravity; | 543 | int win_gravity; |
| @@ -661,38 +661,38 @@ struct x_output | |||
| 661 | #define FRAME_X_IMAGE_CACHE(F) FRAME_X_DISPLAY_INFO ((F))->image_cache | 661 | #define FRAME_X_IMAGE_CACHE(F) FRAME_X_DISPLAY_INFO ((F))->image_cache |
| 662 | 662 | ||
| 663 | 663 | ||
| 664 | /* Pixel width of the bitmaps drawn to indicate truncation, | 664 | /* Pixel width of the fringe bitmaps drawn to indicate truncation, |
| 665 | continuation etc. */ | 665 | continuation etc. */ |
| 666 | 666 | ||
| 667 | #define FRAME_FLAGS_BITMAP_WIDTH(f) 8 | 667 | #define FRAME_FRINGE_BITMAP_WIDTH(f) 8 |
| 668 | #define FRAME_FLAGS_BITMAP_HEIGHT(f) 8 | 668 | #define FRAME_FRINGE_BITMAP_HEIGHT(f) 8 |
| 669 | 669 | ||
| 670 | /* Total width of a areas reserved for drawing truncation bitmaps, | 670 | /* Total width of fringes reserved for drawing truncation bitmaps, |
| 671 | continuation bitmaps and alike. The width is in canonical char | 671 | continuation bitmaps and alike. The width is in canonical char |
| 672 | units of the frame. This must currently be the case because window | 672 | units of the frame. This must currently be the case because window |
| 673 | sizes aren't pixel values. If it weren't the case, we wouldn't be | 673 | sizes aren't pixel values. If it weren't the case, we wouldn't be |
| 674 | able to split windows horizontally nicely. */ | 674 | able to split windows horizontally nicely. */ |
| 675 | 675 | ||
| 676 | #define FRAME_X_FLAGS_AREA_COLS(F) \ | 676 | #define FRAME_X_FRINGE_COLS(F) \ |
| 677 | ((2 * FRAME_FLAGS_BITMAP_WIDTH ((F)) + CANON_X_UNIT ((F)) - 1) \ | 677 | ((2 * FRAME_FRINGE_BITMAP_WIDTH ((F)) + CANON_X_UNIT ((F)) - 1) \ |
| 678 | / CANON_X_UNIT ((F))) | 678 | / CANON_X_UNIT ((F))) |
| 679 | 679 | ||
| 680 | /* Total width of flags areas in pixels. */ | 680 | /* Total width of fringes in pixels. */ |
| 681 | 681 | ||
| 682 | #define FRAME_X_FLAGS_AREA_WIDTH(F) \ | 682 | #define FRAME_X_FRINGE_WIDTH(F) \ |
| 683 | (FRAME_X_FLAGS_AREA_COLS ((F)) * CANON_X_UNIT ((F))) | 683 | (FRAME_X_FRINGE_COLS ((F)) * CANON_X_UNIT ((F))) |
| 684 | 684 | ||
| 685 | /* Pixel-width of the left flags area. */ | 685 | /* Pixel-width of the left fringe. */ |
| 686 | 686 | ||
| 687 | #define FRAME_X_LEFT_FLAGS_AREA_WIDTH(F) \ | 687 | #define FRAME_X_LEFT_FRINGE_WIDTH(F) \ |
| 688 | (FRAME_X_FLAGS_AREA_WIDTH (F) / 2) | 688 | (FRAME_X_FRINGE_WIDTH (F) / 2) |
| 689 | 689 | ||
| 690 | /* Pixel-width of the right flags area. Note that we are doing | 690 | /* Pixel-width of the right fringe. Note that we are doing |
| 691 | integer arithmetic here, so don't loose a pixel if the total | 691 | integer arithmetic here, so don't loose a pixel if the total |
| 692 | width is an odd number. */ | 692 | width is an odd number. */ |
| 693 | 693 | ||
| 694 | #define FRAME_X_RIGHT_FLAGS_AREA_WIDTH(F) \ | 694 | #define FRAME_X_RIGHT_FRINGE_WIDTH(F) \ |
| 695 | (FRAME_X_FLAGS_AREA_WIDTH (F) - FRAME_X_FLAGS_AREA_WIDTH (F) / 2) | 695 | (FRAME_X_FRINGE_WIDTH (F) - FRAME_X_FRINGE_WIDTH (F) / 2) |
| 696 | 696 | ||
| 697 | 697 | ||
| 698 | 698 | ||
| @@ -855,7 +855,7 @@ struct scroll_bar | |||
| 855 | #define CHAR_TO_PIXEL_WIDTH(f, width) \ | 855 | #define CHAR_TO_PIXEL_WIDTH(f, width) \ |
| 856 | (CHAR_TO_PIXEL_COL (f, width) \ | 856 | (CHAR_TO_PIXEL_COL (f, width) \ |
| 857 | + (f)->output_data.x->vertical_scroll_bar_extra \ | 857 | + (f)->output_data.x->vertical_scroll_bar_extra \ |
| 858 | + (f)->output_data.x->flags_areas_extra \ | 858 | + (f)->output_data.x->fringes_extra \ |
| 859 | + (f)->output_data.x->internal_border_width) | 859 | + (f)->output_data.x->internal_border_width) |
| 860 | #define CHAR_TO_PIXEL_HEIGHT(f, height) \ | 860 | #define CHAR_TO_PIXEL_HEIGHT(f, height) \ |
| 861 | (CHAR_TO_PIXEL_ROW (f, height) \ | 861 | (CHAR_TO_PIXEL_ROW (f, height) \ |
| @@ -876,7 +876,7 @@ struct scroll_bar | |||
| 876 | #define PIXEL_TO_CHAR_WIDTH(f, width) \ | 876 | #define PIXEL_TO_CHAR_WIDTH(f, width) \ |
| 877 | (PIXEL_TO_CHAR_COL (f, ((width) \ | 877 | (PIXEL_TO_CHAR_COL (f, ((width) \ |
| 878 | - (f)->output_data.x->internal_border_width \ | 878 | - (f)->output_data.x->internal_border_width \ |
| 879 | - (f)->output_data.x->flags_areas_extra \ | 879 | - (f)->output_data.x->fringes_extra \ |
| 880 | - (f)->output_data.x->vertical_scroll_bar_extra))) | 880 | - (f)->output_data.x->vertical_scroll_bar_extra))) |
| 881 | #define PIXEL_TO_CHAR_HEIGHT(f, height) \ | 881 | #define PIXEL_TO_CHAR_HEIGHT(f, height) \ |
| 882 | (PIXEL_TO_CHAR_ROW (f, ((height) \ | 882 | (PIXEL_TO_CHAR_ROW (f, ((height) \ |