diff options
| author | Richard M. Stallman | 1994-04-09 06:34:27 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1994-04-09 06:34:27 +0000 |
| commit | 5d45642bf463ab9418dea97f5560f90bd9df7ba9 (patch) | |
| tree | ae1fa6c44d829fc396c7cb25b5b9ceb4c90ae379 | |
| parent | 2ba6876c1ef9f157fd1034e67675f6da13135a1a (diff) | |
| download | emacs-5d45642bf463ab9418dea97f5560f90bd9df7ba9.tar.gz emacs-5d45642bf463ab9418dea97f5560f90bd9df7ba9.zip | |
(x_char_height): Use line_height field.
| -rw-r--r-- | src/xfns.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/xfns.c b/src/xfns.c index 362b509eb3e..86dcfdaa44c 100644 --- a/src/xfns.c +++ b/src/xfns.c | |||
| @@ -2555,7 +2555,7 @@ x_rubber_band (f, x, y, width, height, geo, str, hscroll, vscroll) | |||
| 2555 | + (hscroll ? HSCROLL_HEIGHT : 0)), | 2555 | + (hscroll ? HSCROLL_HEIGHT : 0)), |
| 2556 | width, height, f->display.x->font, | 2556 | width, height, f->display.x->font, |
| 2557 | FONT_WIDTH (f->display.x->font), | 2557 | FONT_WIDTH (f->display.x->font), |
| 2558 | FONT_HEIGHT (f->display.x->font)); | 2558 | f->display.x->line_height); |
| 2559 | XFreePixmap (frame.border); | 2559 | XFreePixmap (frame.border); |
| 2560 | XFreePixmap (frame.background); | 2560 | XFreePixmap (frame.background); |
| 2561 | 2561 | ||
| @@ -2927,7 +2927,7 @@ x_char_width (f) | |||
| 2927 | x_char_height (f) | 2927 | x_char_height (f) |
| 2928 | register struct frame *f; | 2928 | register struct frame *f; |
| 2929 | { | 2929 | { |
| 2930 | return FONT_HEIGHT (f->display.x->font); | 2930 | return f->display.x->line_height; |
| 2931 | } | 2931 | } |
| 2932 | 2932 | ||
| 2933 | #if 0 /* These no longer seem like the right way to do things. */ | 2933 | #if 0 /* These no longer seem like the right way to do things. */ |
| @@ -2946,7 +2946,7 @@ x_rectangle (f, gc, left_char, top_char, chars, lines) | |||
| 2946 | int height; | 2946 | int height; |
| 2947 | int left = (left_char * FONT_WIDTH (f->display.x->font) | 2947 | int left = (left_char * FONT_WIDTH (f->display.x->font) |
| 2948 | + f->display.x->internal_border_width); | 2948 | + f->display.x->internal_border_width); |
| 2949 | int top = (top_char * FONT_HEIGHT (f->display.x->font) | 2949 | int top = (top_char * f->display.x->line_height |
| 2950 | + f->display.x->internal_border_width); | 2950 | + f->display.x->internal_border_width); |
| 2951 | 2951 | ||
| 2952 | if (chars < 0) | 2952 | if (chars < 0) |
| @@ -2954,9 +2954,9 @@ x_rectangle (f, gc, left_char, top_char, chars, lines) | |||
| 2954 | else | 2954 | else |
| 2955 | width = FONT_WIDTH (f->display.x->font) * chars; | 2955 | width = FONT_WIDTH (f->display.x->font) * chars; |
| 2956 | if (lines < 0) | 2956 | if (lines < 0) |
| 2957 | height = FONT_HEIGHT (f->display.x->font) / 2; | 2957 | height = f->display.x->line_height / 2; |
| 2958 | else | 2958 | else |
| 2959 | height = FONT_HEIGHT (f->display.x->font) * lines; | 2959 | height = f->display.x->line_height * lines; |
| 2960 | 2960 | ||
| 2961 | XDrawRectangle (x_current_display, FRAME_X_WINDOW (f), | 2961 | XDrawRectangle (x_current_display, FRAME_X_WINDOW (f), |
| 2962 | gc, left, top, width, height); | 2962 | gc, left, top, width, height); |
| @@ -3074,7 +3074,7 @@ outline_region (f, gc, top_x, top_y, bottom_x, bottom_y) | |||
| 3074 | { | 3074 | { |
| 3075 | register int ibw = f->display.x->internal_border_width; | 3075 | register int ibw = f->display.x->internal_border_width; |
| 3076 | register int font_w = FONT_WIDTH (f->display.x->font); | 3076 | register int font_w = FONT_WIDTH (f->display.x->font); |
| 3077 | register int font_h = FONT_HEIGHT (f->display.x->font); | 3077 | register int font_h = f->display.x->line_height; |
| 3078 | int y = top_y; | 3078 | int y = top_y; |
| 3079 | int x = line_len (y); | 3079 | int x = line_len (y); |
| 3080 | XPoint *pixel_points | 3080 | XPoint *pixel_points |
| @@ -3411,7 +3411,7 @@ DEFUN ("x-horizontal-line", Fx_horizontal_line, Sx_horizontal_line, 1, 1, "e", | |||
| 3411 | XGCValues gc_values; | 3411 | XGCValues gc_values; |
| 3412 | #endif | 3412 | #endif |
| 3413 | register int previous_y; | 3413 | register int previous_y; |
| 3414 | register int line = (x_mouse_y + 1) * FONT_HEIGHT (f->display.x->font) | 3414 | register int line = (x_mouse_y + 1) * f->display.x->line_height |
| 3415 | + f->display.x->internal_border_width; | 3415 | + f->display.x->internal_border_width; |
| 3416 | register int left = f->display.x->internal_border_width | 3416 | register int left = f->display.x->internal_border_width |
| 3417 | + (w->left | 3417 | + (w->left |
| @@ -3450,7 +3450,7 @@ DEFUN ("x-horizontal-line", Fx_horizontal_line, Sx_horizontal_line, 1, 1, "e", | |||
| 3450 | && x_mouse_y < XINT (w->top) + XINT (w->height) - 1) | 3450 | && x_mouse_y < XINT (w->top) + XINT (w->height) - 1) |
| 3451 | { | 3451 | { |
| 3452 | previous_y = x_mouse_y; | 3452 | previous_y = x_mouse_y; |
| 3453 | line = (x_mouse_y + 1) * FONT_HEIGHT (f->display.x->font) | 3453 | line = (x_mouse_y + 1) * f->display.x->line_height |
| 3454 | + f->display.x->internal_border_width; | 3454 | + f->display.x->internal_border_width; |
| 3455 | XDrawLine (x_current_display, FRAME_X_WINDOW (f), | 3455 | XDrawLine (x_current_display, FRAME_X_WINDOW (f), |
| 3456 | line_gc, left, line, right, line); | 3456 | line_gc, left, line, right, line); |