Mercurial > emacs
comparison src/xfaces.c @ 29394:84489c72fb8e
(realize_x_face): When copying BASE_FACE bitwise to the
result face, set flags in the face indicating that colors may not
be freed.
author | Gerd Moellmann <gerd@gnu.org> |
---|---|
date | Fri, 02 Jun 2000 19:03:58 +0000 |
parents | d458dee20518 |
children | 8a2e32f7717e |
comparison
equal
deleted
inserted
replaced
29393:3ad9354ade23 | 29394:84489c72fb8e |
---|---|
5857 different font. */ | 5857 different font. */ |
5858 if (!SINGLE_BYTE_CHAR_P (c)) | 5858 if (!SINGLE_BYTE_CHAR_P (c)) |
5859 { | 5859 { |
5860 bcopy (base_face, face, sizeof *face); | 5860 bcopy (base_face, face, sizeof *face); |
5861 face->gc = 0; | 5861 face->gc = 0; |
5862 face->font = NULL; /* to force realize_face to load font */ | 5862 |
5863 /* Don't try to free the colors copied bitwise from BASE_FACE. */ | |
5864 face->foreground_defaulted_p = 1; | |
5865 face->background_defaulted_p = 1; | |
5866 face->underline_defaulted_p = 1; | |
5867 face->overline_color_defaulted_p = 1; | |
5868 face->strike_through_color_defaulted_p = 1; | |
5869 face->box_color_defaulted_p = 1; | |
5870 | |
5871 /* to force realize_face to load font */ | |
5872 face->font = NULL; | |
5863 return face; | 5873 return face; |
5864 } | 5874 } |
5865 | 5875 |
5866 /* Now we are realizing a face for ASCII (and unibyte) characters. */ | 5876 /* Now we are realizing a face for ASCII (and unibyte) characters. */ |
5867 | 5877 |