# HG changeset patch # User Richard M. Stallman # Date 816988363 0 # Node ID 67c2ba47a729c192acae3c779ae711e5a909a6f4 # Parent 57b72553e78d59663a80b08ba03967a8af41e8cb (unload_color, unload_font): Never invalidate computed faces 0 and 1. diff -r 57b72553e78d -r 67c2ba47a729 src/xfaces.c --- a/src/xfaces.c Tue Nov 21 21:12:08 1995 +0000 +++ b/src/xfaces.c Tue Nov 21 21:12:43 1995 +0000 @@ -339,7 +339,7 @@ BLOCK_INPUT; /* Invalidate any computed faces which use this font, and free their GC's if they have any. */ - for (i = 0; i < len; i++) + for (i = 2; i < len; i++) { struct face *face = FRAME_COMPUTED_FACES (f)[i]; if (face->font == font) @@ -348,6 +348,7 @@ if (face->gc) XFreeGC (dpy, face->gc); face->gc = 0; + /* This marks the computed face as available to reuse. */ face->font = 0; } } @@ -402,7 +403,7 @@ BLOCK_INPUT; /* Invalidate any computed faces which use this color, and free their GC's if they have any. */ - for (i = 0; i < len; i++) + for (i = 2; i < len; i++) { struct face *face = FRAME_COMPUTED_FACES (f)[i]; if (face->foreground == pixel @@ -412,6 +413,7 @@ if (face->gc) XFreeGC (dpy, face->gc); face->gc = 0; + /* This marks the computed face as available to reuse. */ face->font = 0; } }