aboutsummaryrefslogtreecommitdiffstats
path: root/src/xfaces.c
diff options
context:
space:
mode:
authorGerd Moellmann <[email protected]>1999-07-26 11:49:43 +0000
committerGerd Moellmann <[email protected]>1999-07-26 11:49:43 +0000
commitd6fc0a22556e390827bf330c821a0876bb6903a6 (patch)
tree8c3977fbd01686fd103ac6eab3cc36c665051dbc /src/xfaces.c
parent9d289ed7c77100035a41cbd21f4254c8a41d2ec7 (diff)
(load_face_colors): Load background color if setting
stipple, too.
Diffstat (limited to 'src/xfaces.c')
-rw-r--r--src/xfaces.c37
1 files changed, 12 insertions, 25 deletions
diff --git a/src/xfaces.c b/src/xfaces.c
index f81f1ea4ce..fc58cf2ad0 100644
--- a/src/xfaces.c
+++ b/src/xfaces.c
@@ -972,36 +972,23 @@ load_pixmap (f, name, w_ptr, h_ptr)
#ifdef HAVE_X_WINDOWS
-/* Update the line_height of frame F according to the biggest font in
- any face. Return non-zero if line height changes. */
+/* Update the line_height of frame F. Return non-zero if line height
+ changes. */
int
frame_update_line_height (f)
struct frame *f;
{
- int i;
- int fontset = f->output_data.x->fontset;
- int biggest = (fontset > 0
- ? FRAME_FONTSET_DATA (f)->fontset_table[fontset]->height
- : FONT_HEIGHT (f->output_data.x->font));
- struct face_cache *c = FRAME_FACE_CACHE (f);
- int changed_p;
-
- for (i = 0; i < c->used; ++i)
- {
- struct face *face = c->faces_by_id[i];
- if (face)
- {
- int height
- = (face->fontset >= 0
- ? FRAME_FONTSET_DATA (f)->fontset_table[face->fontset]->height
- : FONT_HEIGHT (face->font));
- biggest = max (height, biggest);
- }
- }
-
- changed_p = biggest != f->output_data.x->line_height;
- f->output_data.x->line_height = biggest;
+ int fontset, line_height, changed_p;
+
+ fontset = f->output_data.x->fontset;
+ if (fontset > 0)
+ line_height = FRAME_FONTSET_DATA (f)->fontset_table[fontset]->height;
+ else
+ line_height = FONT_HEIGHT (f->output_data.x->font);
+
+ changed_p = line_height != f->output_data.x->line_height;
+ f->output_data.x->line_height = line_height;
return changed_p;
}