diff options
| author | Kim F. Storm | 2001-11-16 13:06:02 +0000 |
|---|---|---|
| committer | Kim F. Storm | 2001-11-16 13:06:02 +0000 |
| commit | 33c34beaa5784bf3d4402982b67c0d7a5101a461 (patch) | |
| tree | 5c13daa9aff9d7b0910c1545ef3c5f94c06c7113 /src | |
| parent | c054b556ae8ad10d3ab07300b90df21709dc454b (diff) | |
| download | emacs-33c34beaa5784bf3d4402982b67c0d7a5101a461.tar.gz emacs-33c34beaa5784bf3d4402982b67c0d7a5101a461.zip | |
Fringe cleanup.
Comment fixes. Use renamed symbols.
(fringe_bitmap_type): Renamed from bitmap_type.
(NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
(w32_draw_fringe_bitmap): Renamed from w32_draw_bitmap.
(x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
Diffstat (limited to 'src')
| -rw-r--r-- | src/w32term.c | 118 |
1 files changed, 59 insertions, 59 deletions
diff --git a/src/w32term.c b/src/w32term.c index 3a60008ab12..18095654d95 100644 --- a/src/w32term.c +++ b/src/w32term.c | |||
| @@ -62,11 +62,11 @@ Boston, MA 02111-1307, USA. */ | |||
| 62 | #define BETWEEN(X, LOWER, UPPER) ((X) >= (LOWER) && (X) < (UPPER)) | 62 | #define BETWEEN(X, LOWER, UPPER) ((X) >= (LOWER) && (X) < (UPPER)) |
| 63 | 63 | ||
| 64 | 64 | ||
| 65 | /* Bitmaps for truncated lines. */ | 65 | /* Fringe bitmaps. */ |
| 66 | 66 | ||
| 67 | enum bitmap_type | 67 | enum fringe_bitmap_type |
| 68 | { | 68 | { |
| 69 | NO_BITMAP, | 69 | NO_FRINGE_BITMAP, |
| 70 | LEFT_TRUNCATION_BITMAP, | 70 | LEFT_TRUNCATION_BITMAP, |
| 71 | RIGHT_TRUNCATION_BITMAP, | 71 | RIGHT_TRUNCATION_BITMAP, |
| 72 | OVERLAY_ARROW_BITMAP, | 72 | OVERLAY_ARROW_BITMAP, |
| @@ -401,12 +401,12 @@ static void x_update_window_cursor P_ ((struct window *, int)); | |||
| 401 | static void x_erase_phys_cursor P_ ((struct window *)); | 401 | static void x_erase_phys_cursor P_ ((struct window *)); |
| 402 | void x_display_cursor P_ ((struct window *w, int, int, int, int, int)); | 402 | void x_display_cursor P_ ((struct window *w, int, int, int, int, int)); |
| 403 | void x_display_and_set_cursor P_ ((struct window *, int, int, int, int, int)); | 403 | void x_display_and_set_cursor P_ ((struct window *, int, int, int, int, int)); |
| 404 | static void w32_draw_bitmap P_ ((struct window *, HDC hdc, struct glyph_row *, | 404 | static void w32_draw_fringe_bitmap P_ ((struct window *, HDC hdc, struct glyph_row *, |
| 405 | enum bitmap_type)); | 405 | enum fringe_bitmap_type)); |
| 406 | static void w32_clip_to_row P_ ((struct window *, struct glyph_row *, | 406 | static void w32_clip_to_row P_ ((struct window *, struct glyph_row *, |
| 407 | HDC, int)); | 407 | HDC, int)); |
| 408 | static int x_phys_cursor_in_rect_p P_ ((struct window *, RECT *)); | 408 | static int x_phys_cursor_in_rect_p P_ ((struct window *, RECT *)); |
| 409 | static void x_draw_row_bitmaps P_ ((struct window *, struct glyph_row *)); | 409 | static void x_draw_row_fringe_bitmaps P_ ((struct window *, struct glyph_row *)); |
| 410 | static void note_overwritten_text_cursor P_ ((struct window *, int, int)); | 410 | static void note_overwritten_text_cursor P_ ((struct window *, int, int)); |
| 411 | 411 | ||
| 412 | static Lisp_Object Qvendor_specific_keysyms; | 412 | static Lisp_Object Qvendor_specific_keysyms; |
| @@ -650,7 +650,7 @@ x_draw_vertical_border (w) | |||
| 650 | 650 | ||
| 651 | window_box_edges (w, -1, (int *) &r.left, (int *) &r.top, | 651 | window_box_edges (w, -1, (int *) &r.left, (int *) &r.top, |
| 652 | (int *) &r.right, (int *) &r.bottom); | 652 | (int *) &r.right, (int *) &r.bottom); |
| 653 | r.left = r.right + FRAME_X_RIGHT_FLAGS_AREA_WIDTH (f); | 653 | r.left = r.right + FRAME_X_RIGHT_FRINGE_WIDTH (f); |
| 654 | r.right = r.left + 1; | 654 | r.right = r.left + 1; |
| 655 | r.bottom -= 1; | 655 | r.bottom -= 1; |
| 656 | 656 | ||
| @@ -750,7 +750,7 @@ w32_frame_up_to_date (f) | |||
| 750 | 750 | ||
| 751 | 751 | ||
| 752 | /* Draw truncation mark bitmaps, continuation mark bitmaps, overlay | 752 | /* Draw truncation mark bitmaps, continuation mark bitmaps, overlay |
| 753 | arrow bitmaps, or clear the areas where they would be displayed | 753 | arrow bitmaps, or clear the fringes if no bitmaps are required |
| 754 | before DESIRED_ROW is made current. The window being updated is | 754 | before DESIRED_ROW is made current. The window being updated is |
| 755 | found in updated_window. This function It is called from | 755 | found in updated_window. This function It is called from |
| 756 | update_window_line only if it is known that there are differences | 756 | update_window_line only if it is known that there are differences |
| @@ -770,7 +770,7 @@ x_after_update_window_line (desired_row) | |||
| 770 | int width; | 770 | int width; |
| 771 | 771 | ||
| 772 | BLOCK_INPUT; | 772 | BLOCK_INPUT; |
| 773 | x_draw_row_bitmaps (w, desired_row); | 773 | x_draw_row_fringe_bitmaps (w, desired_row); |
| 774 | 774 | ||
| 775 | /* When a window has disappeared, make sure that no rest of | 775 | /* When a window has disappeared, make sure that no rest of |
| 776 | full-width rows stays visible in the internal border. */ | 776 | full-width rows stays visible in the internal border. */ |
| @@ -781,7 +781,7 @@ x_after_update_window_line (desired_row) | |||
| 781 | { | 781 | { |
| 782 | int height = desired_row->visible_height; | 782 | int height = desired_row->visible_height; |
| 783 | int x = (window_box_right (w, -1) | 783 | int x = (window_box_right (w, -1) |
| 784 | + FRAME_X_RIGHT_FLAGS_AREA_WIDTH (f)); | 784 | + FRAME_X_RIGHT_FRINGE_WIDTH (f)); |
| 785 | int y = WINDOW_TO_FRAME_PIXEL_Y (w, max (0, desired_row->y)); | 785 | int y = WINDOW_TO_FRAME_PIXEL_Y (w, max (0, desired_row->y)); |
| 786 | HDC hdc = get_frame_dc (f); | 786 | HDC hdc = get_frame_dc (f); |
| 787 | 787 | ||
| @@ -794,17 +794,17 @@ x_after_update_window_line (desired_row) | |||
| 794 | } | 794 | } |
| 795 | 795 | ||
| 796 | 796 | ||
| 797 | /* Draw the bitmap WHICH in one of the areas to the left or right of | 797 | /* Draw the bitmap WHICH in one of the left or right fringes of |
| 798 | window W. ROW is the glyph row for which to display the bitmap; it | 798 | window W. ROW is the glyph row for which to display the bitmap; it |
| 799 | determines the vertical position at which the bitmap has to be | 799 | determines the vertical position at which the bitmap has to be |
| 800 | drawn. */ | 800 | drawn. */ |
| 801 | 801 | ||
| 802 | static void | 802 | static void |
| 803 | w32_draw_bitmap (w, hdc, row, which) | 803 | w32_draw_fringe_bitmap (w, hdc, row, which) |
| 804 | struct window *w; | 804 | struct window *w; |
| 805 | HDC hdc; | 805 | HDC hdc; |
| 806 | struct glyph_row *row; | 806 | struct glyph_row *row; |
| 807 | enum bitmap_type which; | 807 | enum fringe_bitmap_type which; |
| 808 | { | 808 | { |
| 809 | struct frame *f = XFRAME (WINDOW_FRAME (w)); | 809 | struct frame *f = XFRAME (WINDOW_FRAME (w)); |
| 810 | Window window = FRAME_W32_WINDOW (f); | 810 | Window window = FRAME_W32_WINDOW (f); |
| @@ -825,7 +825,7 @@ w32_draw_bitmap (w, hdc, row, which) | |||
| 825 | pixmap = left_bmp; | 825 | pixmap = left_bmp; |
| 826 | x = (WINDOW_TO_FRAME_PIXEL_X (w, 0) | 826 | x = (WINDOW_TO_FRAME_PIXEL_X (w, 0) |
| 827 | - wd | 827 | - wd |
| 828 | - (FRAME_X_LEFT_FLAGS_AREA_WIDTH (f) - wd) / 2); | 828 | - (FRAME_X_LEFT_FRINGE_WIDTH (f) - wd) / 2); |
| 829 | break; | 829 | break; |
| 830 | 830 | ||
| 831 | case OVERLAY_ARROW_BITMAP: | 831 | case OVERLAY_ARROW_BITMAP: |
| @@ -834,7 +834,7 @@ w32_draw_bitmap (w, hdc, row, which) | |||
| 834 | pixmap = ov_bmp; | 834 | pixmap = ov_bmp; |
| 835 | x = (WINDOW_TO_FRAME_PIXEL_X (w, 0) | 835 | x = (WINDOW_TO_FRAME_PIXEL_X (w, 0) |
| 836 | - wd | 836 | - wd |
| 837 | - (FRAME_X_LEFT_FLAGS_AREA_WIDTH (f) - wd) / 2); | 837 | - (FRAME_X_LEFT_FRINGE_WIDTH (f) - wd) / 2); |
| 838 | break; | 838 | break; |
| 839 | 839 | ||
| 840 | case RIGHT_TRUNCATION_BITMAP: | 840 | case RIGHT_TRUNCATION_BITMAP: |
| @@ -842,7 +842,7 @@ w32_draw_bitmap (w, hdc, row, which) | |||
| 842 | h = right_height; | 842 | h = right_height; |
| 843 | pixmap = right_bmp; | 843 | pixmap = right_bmp; |
| 844 | x = window_box_right (w, -1); | 844 | x = window_box_right (w, -1); |
| 845 | x += (FRAME_X_RIGHT_FLAGS_AREA_WIDTH (f) - wd) / 2; | 845 | x += (FRAME_X_RIGHT_FRINGE_WIDTH (f) - wd) / 2; |
| 846 | break; | 846 | break; |
| 847 | 847 | ||
| 848 | case CONTINUED_LINE_BITMAP: | 848 | case CONTINUED_LINE_BITMAP: |
| @@ -850,7 +850,7 @@ w32_draw_bitmap (w, hdc, row, which) | |||
| 850 | h = continued_height; | 850 | h = continued_height; |
| 851 | pixmap = continued_bmp; | 851 | pixmap = continued_bmp; |
| 852 | x = window_box_right (w, -1); | 852 | x = window_box_right (w, -1); |
| 853 | x += (FRAME_X_RIGHT_FLAGS_AREA_WIDTH (f) - wd) / 2; | 853 | x += (FRAME_X_RIGHT_FRINGE_WIDTH (f) - wd) / 2; |
| 854 | break; | 854 | break; |
| 855 | 855 | ||
| 856 | case CONTINUATION_LINE_BITMAP: | 856 | case CONTINUATION_LINE_BITMAP: |
| @@ -859,7 +859,7 @@ w32_draw_bitmap (w, hdc, row, which) | |||
| 859 | pixmap = continuation_bmp; | 859 | pixmap = continuation_bmp; |
| 860 | x = (WINDOW_TO_FRAME_PIXEL_X (w, 0) | 860 | x = (WINDOW_TO_FRAME_PIXEL_X (w, 0) |
| 861 | - wd | 861 | - wd |
| 862 | - (FRAME_X_LEFT_FLAGS_AREA_WIDTH (f) - wd) / 2); | 862 | - (FRAME_X_LEFT_FRINGE_WIDTH (f) - wd) / 2); |
| 863 | break; | 863 | break; |
| 864 | 864 | ||
| 865 | case ZV_LINE_BITMAP: | 865 | case ZV_LINE_BITMAP: |
| @@ -868,7 +868,7 @@ w32_draw_bitmap (w, hdc, row, which) | |||
| 868 | pixmap = zv_bmp; | 868 | pixmap = zv_bmp; |
| 869 | x = (WINDOW_TO_FRAME_PIXEL_X (w, 0) | 869 | x = (WINDOW_TO_FRAME_PIXEL_X (w, 0) |
| 870 | - wd | 870 | - wd |
| 871 | - (FRAME_X_LEFT_FLAGS_AREA_WIDTH (f) - wd) / 2); | 871 | - (FRAME_X_LEFT_FRINGE_WIDTH (f) - wd) / 2); |
| 872 | break; | 872 | break; |
| 873 | 873 | ||
| 874 | default: | 874 | default: |
| @@ -881,7 +881,7 @@ w32_draw_bitmap (w, hdc, row, which) | |||
| 881 | dy = (row->height - h) / 2; | 881 | dy = (row->height - h) / 2; |
| 882 | 882 | ||
| 883 | /* Draw the bitmap. */ | 883 | /* Draw the bitmap. */ |
| 884 | face = FACE_FROM_ID (f, BITMAP_AREA_FACE_ID); | 884 | face = FACE_FROM_ID (f, FRINGE_FACE_ID); |
| 885 | 885 | ||
| 886 | compat_hdc = CreateCompatibleDC (hdc); | 886 | compat_hdc = CreateCompatibleDC (hdc); |
| 887 | SaveDC (hdc); | 887 | SaveDC (hdc); |
| @@ -898,16 +898,16 @@ w32_draw_bitmap (w, hdc, row, which) | |||
| 898 | } | 898 | } |
| 899 | 899 | ||
| 900 | 900 | ||
| 901 | /* Draw flags bitmaps for glyph row ROW on window W. Call this | 901 | /* Draw fringe bitmaps for glyph row ROW on window W. Call this |
| 902 | function with input blocked. */ | 902 | function with input blocked. */ |
| 903 | 903 | ||
| 904 | static void | 904 | static void |
| 905 | x_draw_row_bitmaps (w, row) | 905 | x_draw_row_fringe_bitmaps (w, row) |
| 906 | struct window *w; | 906 | struct window *w; |
| 907 | struct glyph_row *row; | 907 | struct glyph_row *row; |
| 908 | { | 908 | { |
| 909 | struct frame *f = XFRAME (w->frame); | 909 | struct frame *f = XFRAME (w->frame); |
| 910 | enum bitmap_type bitmap; | 910 | enum fringe_bitmap_type bitmap; |
| 911 | struct face *face; | 911 | struct face *face; |
| 912 | int header_line_height = -1; | 912 | int header_line_height = -1; |
| 913 | HDC hdc; | 913 | HDC hdc; |
| @@ -919,10 +919,10 @@ x_draw_row_bitmaps (w, row) | |||
| 919 | if (row->visible_height <= 0) | 919 | if (row->visible_height <= 0) |
| 920 | return; | 920 | return; |
| 921 | 921 | ||
| 922 | face = FACE_FROM_ID (f, BITMAP_AREA_FACE_ID); | 922 | face = FACE_FROM_ID (f, FRINGE_FACE_ID); |
| 923 | PREPARE_FACE_FOR_DISPLAY (f, face); | 923 | PREPARE_FACE_FOR_DISPLAY (f, face); |
| 924 | 924 | ||
| 925 | /* Decide which bitmap to draw at the left side. */ | 925 | /* Decide which bitmap to draw in the left fringe. */ |
| 926 | if (row->overlay_arrow_p) | 926 | if (row->overlay_arrow_p) |
| 927 | bitmap = OVERLAY_ARROW_BITMAP; | 927 | bitmap = OVERLAY_ARROW_BITMAP; |
| 928 | else if (row->truncated_on_left_p) | 928 | else if (row->truncated_on_left_p) |
| @@ -932,15 +932,15 @@ x_draw_row_bitmaps (w, row) | |||
| 932 | else if (row->indicate_empty_line_p) | 932 | else if (row->indicate_empty_line_p) |
| 933 | bitmap = ZV_LINE_BITMAP; | 933 | bitmap = ZV_LINE_BITMAP; |
| 934 | else | 934 | else |
| 935 | bitmap = NO_BITMAP; | 935 | bitmap = NO_FRINGE_BITMAP; |
| 936 | 936 | ||
| 937 | hdc = get_frame_dc (f); | 937 | hdc = get_frame_dc (f); |
| 938 | 938 | ||
| 939 | /* Clear flags area if no bitmap to draw or if bitmap doesn't fill | 939 | /* Clear left fringe if no bitmap to draw or if bitmap doesn't fill |
| 940 | the flags area. */ | 940 | the fringe. */ |
| 941 | if (bitmap == NO_BITMAP | 941 | if (bitmap == NO_FRINGE_BITMAP |
| 942 | || FRAME_FLAGS_BITMAP_WIDTH (f) < FRAME_X_LEFT_FLAGS_AREA_WIDTH (f) | 942 | || FRAME_FRINGE_BITMAP_WIDTH (f) < FRAME_X_LEFT_FRINGE_WIDTH (f) |
| 943 | || row->height > FRAME_FLAGS_BITMAP_HEIGHT (f)) | 943 | || row->height > FRAME_FRINGE_BITMAP_HEIGHT (f)) |
| 944 | { | 944 | { |
| 945 | /* If W has a vertical border to its left, don't draw over it. */ | 945 | /* If W has a vertical border to its left, don't draw over it. */ |
| 946 | int border = ((XFASTINT (w->left) > 0 | 946 | int border = ((XFASTINT (w->left) > 0 |
| @@ -952,30 +952,30 @@ x_draw_row_bitmaps (w, row) | |||
| 952 | header_line_height = WINDOW_DISPLAY_HEADER_LINE_HEIGHT (w); | 952 | header_line_height = WINDOW_DISPLAY_HEADER_LINE_HEIGHT (w); |
| 953 | 953 | ||
| 954 | w32_fill_area (f, hdc, face->background, | 954 | w32_fill_area (f, hdc, face->background, |
| 955 | left - FRAME_X_LEFT_FLAGS_AREA_WIDTH (f) + border, | 955 | left - FRAME_X_LEFT_FRINGE_WIDTH (f) + border, |
| 956 | WINDOW_TO_FRAME_PIXEL_Y (w, max (header_line_height, | 956 | WINDOW_TO_FRAME_PIXEL_Y (w, max (header_line_height, |
| 957 | row->y)), | 957 | row->y)), |
| 958 | FRAME_X_LEFT_FLAGS_AREA_WIDTH (f) - border, | 958 | FRAME_X_LEFT_FRINGE_WIDTH (f) - border, |
| 959 | row->visible_height); | 959 | row->visible_height); |
| 960 | } | 960 | } |
| 961 | 961 | ||
| 962 | /* Draw the left bitmap. */ | 962 | /* Draw the left bitmap. */ |
| 963 | if (bitmap != NO_BITMAP) | 963 | if (bitmap != NO_FRINGE_BITMAP) |
| 964 | w32_draw_bitmap (w, hdc, row, bitmap); | 964 | w32_draw_fringe_bitmap (w, hdc, row, bitmap); |
| 965 | 965 | ||
| 966 | /* Decide which bitmap to draw at the right side. */ | 966 | /* Decide which bitmap to draw in the right fringe. */ |
| 967 | if (row->truncated_on_right_p) | 967 | if (row->truncated_on_right_p) |
| 968 | bitmap = RIGHT_TRUNCATION_BITMAP; | 968 | bitmap = RIGHT_TRUNCATION_BITMAP; |
| 969 | else if (row->continued_p) | 969 | else if (row->continued_p) |
| 970 | bitmap = CONTINUED_LINE_BITMAP; | 970 | bitmap = CONTINUED_LINE_BITMAP; |
| 971 | else | 971 | else |
| 972 | bitmap = NO_BITMAP; | 972 | bitmap = NO_FRINGE_BITMAP; |
| 973 | 973 | ||
| 974 | /* Clear flags area if no bitmap to draw of if bitmap doesn't fill | 974 | /* Clear right fringe if no bitmap to draw of if bitmap doesn't fill |
| 975 | the flags area. */ | 975 | the fringe. */ |
| 976 | if (bitmap == NO_BITMAP | 976 | if (bitmap == NO_FRINGE_BITMAP |
| 977 | || FRAME_FLAGS_BITMAP_WIDTH (f) < FRAME_X_RIGHT_FLAGS_AREA_WIDTH (f) | 977 | || FRAME_FRINGE_BITMAP_WIDTH (f) < FRAME_X_RIGHT_FRINGE_WIDTH (f) |
| 978 | || row->height > FRAME_FLAGS_BITMAP_HEIGHT (f)) | 978 | || row->height > FRAME_FRINGE_BITMAP_HEIGHT (f)) |
| 979 | { | 979 | { |
| 980 | int right = window_box_right (w, -1); | 980 | int right = window_box_right (w, -1); |
| 981 | 981 | ||
| @@ -986,13 +986,13 @@ x_draw_row_bitmaps (w, row) | |||
| 986 | right, | 986 | right, |
| 987 | WINDOW_TO_FRAME_PIXEL_Y (w, max (header_line_height, | 987 | WINDOW_TO_FRAME_PIXEL_Y (w, max (header_line_height, |
| 988 | row->y)), | 988 | row->y)), |
| 989 | FRAME_X_RIGHT_FLAGS_AREA_WIDTH (f), | 989 | FRAME_X_RIGHT_FRINGE_WIDTH (f), |
| 990 | row->visible_height); | 990 | row->visible_height); |
| 991 | } | 991 | } |
| 992 | 992 | ||
| 993 | /* Draw the right bitmap. */ | 993 | /* Draw the right bitmap. */ |
| 994 | if (bitmap != NO_BITMAP) | 994 | if (bitmap != NO_FRINGE_BITMAP) |
| 995 | w32_draw_bitmap (w, hdc, row, bitmap); | 995 | w32_draw_fringe_bitmap (w, hdc, row, bitmap); |
| 996 | 996 | ||
| 997 | release_frame_dc (f, hdc); | 997 | release_frame_dc (f, hdc); |
| 998 | } | 998 | } |
| @@ -3754,7 +3754,7 @@ x_draw_glyph_string_box (s) | |||
| 3754 | if (s->row->full_width_p | 3754 | if (s->row->full_width_p |
| 3755 | && !s->w->pseudo_window_p) | 3755 | && !s->w->pseudo_window_p) |
| 3756 | { | 3756 | { |
| 3757 | last_x += FRAME_X_RIGHT_FLAGS_AREA_WIDTH (s->f); | 3757 | last_x += FRAME_X_RIGHT_FRINGE_WIDTH (s->f); |
| 3758 | if (FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT (s->f)) | 3758 | if (FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT (s->f)) |
| 3759 | last_x += FRAME_SCROLL_BAR_WIDTH (s->f) * CANON_X_UNIT (s->f); | 3759 | last_x += FRAME_SCROLL_BAR_WIDTH (s->f) * CANON_X_UNIT (s->f); |
| 3760 | } | 3760 | } |
| @@ -4893,9 +4893,9 @@ x_draw_glyphs (w, x, row, area, start, end, hl, real_start, real_end, | |||
| 4893 | if (row->full_width_p) | 4893 | if (row->full_width_p) |
| 4894 | { | 4894 | { |
| 4895 | /* X is relative to the left edge of W, without scroll bars | 4895 | /* X is relative to the left edge of W, without scroll bars |
| 4896 | or flag areas. */ | 4896 | or fringes. */ |
| 4897 | struct frame *f = XFRAME (WINDOW_FRAME (w)); | 4897 | struct frame *f = XFRAME (WINDOW_FRAME (w)); |
| 4898 | /* int width = FRAME_FLAGS_AREA_WIDTH (f); */ | 4898 | /* int width = FRAME_FRINGE_WIDTH (f); */ |
| 4899 | int window_left_x = WINDOW_LEFT_MARGIN (w) * CANON_X_UNIT (f); | 4899 | int window_left_x = WINDOW_LEFT_MARGIN (w) * CANON_X_UNIT (f); |
| 4900 | 4900 | ||
| 4901 | x += window_left_x; | 4901 | x += window_left_x; |
| @@ -5400,11 +5400,11 @@ x_scroll_run (w, run) | |||
| 5400 | HDC hdc = get_frame_dc (f); | 5400 | HDC hdc = get_frame_dc (f); |
| 5401 | 5401 | ||
| 5402 | /* Get frame-relative bounding box of the text display area of W, | 5402 | /* Get frame-relative bounding box of the text display area of W, |
| 5403 | without mode lines. Include in this box the flags areas to the | 5403 | without mode lines. Include in this box the left and right |
| 5404 | left and right of W. */ | 5404 | fringes of W. */ |
| 5405 | window_box (w, -1, &x, &y, &width, &height); | 5405 | window_box (w, -1, &x, &y, &width, &height); |
| 5406 | width += FRAME_X_FLAGS_AREA_WIDTH (f); | 5406 | width += FRAME_X_FRINGE_WIDTH (f); |
| 5407 | x -= FRAME_X_LEFT_FLAGS_AREA_WIDTH (f); | 5407 | x -= FRAME_X_LEFT_FRINGE_WIDTH (f); |
| 5408 | 5408 | ||
| 5409 | from_y = WINDOW_TO_FRAME_PIXEL_Y (w, run->current_y); | 5409 | from_y = WINDOW_TO_FRAME_PIXEL_Y (w, run->current_y); |
| 5410 | to_y = WINDOW_TO_FRAME_PIXEL_Y (w, run->desired_y); | 5410 | to_y = WINDOW_TO_FRAME_PIXEL_Y (w, run->desired_y); |
| @@ -5643,7 +5643,7 @@ expose_line (w, row, r) | |||
| 5643 | expose_area (w, row, r, TEXT_AREA); | 5643 | expose_area (w, row, r, TEXT_AREA); |
| 5644 | if (row->used[RIGHT_MARGIN_AREA]) | 5644 | if (row->used[RIGHT_MARGIN_AREA]) |
| 5645 | expose_area (w, row, r, RIGHT_MARGIN_AREA); | 5645 | expose_area (w, row, r, RIGHT_MARGIN_AREA); |
| 5646 | x_draw_row_bitmaps (w, row); | 5646 | x_draw_row_fringe_bitmaps (w, row); |
| 5647 | } | 5647 | } |
| 5648 | 5648 | ||
| 5649 | return row->mouse_face_p; | 5649 | return row->mouse_face_p; |
| @@ -6342,7 +6342,7 @@ frame_to_window_pixel_xy (w, x, y) | |||
| 6342 | /* Take proper action when mouse has moved to the mode or header line of | 6342 | /* Take proper action when mouse has moved to the mode or header line of |
| 6343 | window W, x-position X. MODE_LINE_P non-zero means mouse is on the | 6343 | window W, x-position X. MODE_LINE_P non-zero means mouse is on the |
| 6344 | mode line. X is relative to the start of the text display area of | 6344 | mode line. X is relative to the start of the text display area of |
| 6345 | W, so the width of bitmap areas and scroll bars must be subtracted | 6345 | W, so the width of fringes and scroll bars must be subtracted |
| 6346 | to get a position relative to the start of the mode line. */ | 6346 | to get a position relative to the start of the mode line. */ |
| 6347 | 6347 | ||
| 6348 | static void | 6348 | static void |
| @@ -6370,7 +6370,7 @@ note_mode_line_highlight (w, x, mode_line_p) | |||
| 6370 | glyph = row->glyphs[TEXT_AREA]; | 6370 | glyph = row->glyphs[TEXT_AREA]; |
| 6371 | end = glyph + row->used[TEXT_AREA]; | 6371 | end = glyph + row->used[TEXT_AREA]; |
| 6372 | x0 = - (FRAME_LEFT_SCROLL_BAR_WIDTH (f) * CANON_X_UNIT (f) | 6372 | x0 = - (FRAME_LEFT_SCROLL_BAR_WIDTH (f) * CANON_X_UNIT (f) |
| 6373 | + FRAME_X_LEFT_FLAGS_AREA_WIDTH (f)); | 6373 | + FRAME_X_LEFT_FRINGE_WIDTH (f)); |
| 6374 | 6374 | ||
| 6375 | while (glyph < end | 6375 | while (glyph < end |
| 6376 | && x >= x0 + glyph->pixel_width) | 6376 | && x >= x0 + glyph->pixel_width) |
| @@ -9203,8 +9203,8 @@ w32_clip_to_row (w, row, hdc, whole_line_p) | |||
| 9203 | the rectangle to the left and increase its width. */ | 9203 | the rectangle to the left and increase its width. */ |
| 9204 | if (whole_line_p) | 9204 | if (whole_line_p) |
| 9205 | { | 9205 | { |
| 9206 | clip_rect.left -= FRAME_X_LEFT_FLAGS_AREA_WIDTH (f); | 9206 | clip_rect.left -= FRAME_X_LEFT_FRINGE_WIDTH (f); |
| 9207 | clip_rect.right += FRAME_X_FLAGS_AREA_WIDTH (f); | 9207 | clip_rect.right += FRAME_X_FRINGE_WIDTH (f); |
| 9208 | } | 9208 | } |
| 9209 | 9209 | ||
| 9210 | w32_set_clip_rectangle (hdc, &clip_rect); | 9210 | w32_set_clip_rectangle (hdc, &clip_rect); |
| @@ -10021,8 +10021,8 @@ x_set_window_size (f, change_gravity, cols, rows) | |||
| 10021 | = (!FRAME_HAS_VERTICAL_SCROLL_BARS (f) | 10021 | = (!FRAME_HAS_VERTICAL_SCROLL_BARS (f) |
| 10022 | ? 0 | 10022 | ? 0 |
| 10023 | : (FRAME_SCROLL_BAR_COLS (f) * FONT_WIDTH (f->output_data.w32->font))); | 10023 | : (FRAME_SCROLL_BAR_COLS (f) * FONT_WIDTH (f->output_data.w32->font))); |
| 10024 | f->output_data.w32->flags_areas_extra | 10024 | f->output_data.w32->fringes_extra |
| 10025 | = FRAME_FLAGS_AREA_WIDTH (f); | 10025 | = FRAME_FRINGE_WIDTH (f); |
| 10026 | pixelwidth = CHAR_TO_PIXEL_WIDTH (f, cols); | 10026 | pixelwidth = CHAR_TO_PIXEL_WIDTH (f, cols); |
| 10027 | pixelheight = CHAR_TO_PIXEL_HEIGHT (f, rows); | 10027 | pixelheight = CHAR_TO_PIXEL_HEIGHT (f, rows); |
| 10028 | 10028 | ||