aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1994-04-14 12:07:21 +0000
committerRichard M. Stallman1994-04-14 12:07:21 +0000
commit6717f691111dbeeee6ede368934406ee19ab4f94 (patch)
tree1a48cb5fe0a9fe5698c5d1009c0f74e95993a354 /src
parent9658bdd075073764481b6c09afe95c260751ad08 (diff)
downloademacs-6717f691111dbeeee6ede368934406ee19ab4f94.tar.gz
emacs-6717f691111dbeeee6ede368934406ee19ab4f94.zip
(frame_update_line_height): Don't call x_set_window_size.
Return 1 if line_height changed. (Fset_face_attribute_internal): Call x_set_window_size here if nec.
Diffstat (limited to 'src')
-rw-r--r--src/xfaces.c11
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
657void 657int
658frame_update_line_height (f) 658frame_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 {