diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/xfaces.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/xfaces.c b/src/xfaces.c index 880bbc72c6e..8f38e1c955a 100644 --- a/src/xfaces.c +++ b/src/xfaces.c | |||
| @@ -652,9 +652,9 @@ same_size_fonts (font1, font2) | |||
| 652 | } | 652 | } |
| 653 | 653 | ||
| 654 | /* Update the line_height of frame F according to the biggest font in | 654 | /* Update the line_height of frame F according to the biggest font in |
| 655 | any face, and resize the frame if line_height changes. */ | 655 | any face. Return nonzero if if line_height changes. */ |
| 656 | 656 | ||
| 657 | void | 657 | int |
| 658 | frame_update_line_height (f) | 658 | frame_update_line_height (f) |
| 659 | FRAME_PTR f; | 659 | FRAME_PTR f; |
| 660 | { | 660 | { |
| @@ -671,10 +671,10 @@ frame_update_line_height (f) | |||
| 671 | } | 671 | } |
| 672 | 672 | ||
| 673 | if (biggest == f->display.x->line_height) | 673 | if (biggest == f->display.x->line_height) |
| 674 | return; | 674 | return 0; |
| 675 | 675 | ||
| 676 | f->display.x->line_height = biggest; | 676 | f->display.x->line_height = biggest; |
| 677 | x_set_window_size (f, 0, f->width, f->height); | 677 | return 1; |
| 678 | } | 678 | } |
| 679 | 679 | ||
| 680 | /* Modify face TO by copying from FROM all properties which have | 680 | /* Modify face TO by copying from FROM all properties which have |
| @@ -986,7 +986,8 @@ DEFUN ("set-face-attribute-internal", Fset_face_attribute_internal, | |||
| 986 | if (face->font != f->display.x->font) | 986 | if (face->font != f->display.x->font) |
| 987 | unload_font (f, face->font); | 987 | unload_font (f, face->font); |
| 988 | face->font = font; | 988 | face->font = font; |
| 989 | frame_update_line_height (f); | 989 | if (frame_update_line_height (f)) |
| 990 | x_set_window_size (f, 0, f->width, f->height); | ||
| 990 | } | 991 | } |
| 991 | else if (EQ (attr_name, intern ("foreground"))) | 992 | else if (EQ (attr_name, intern ("foreground"))) |
| 992 | { | 993 | { |