diff options
| author | Gerd Moellmann | 2001-10-31 11:10:25 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 2001-10-31 11:10:25 +0000 |
| commit | 28a072fe30aaad1c25e122e93ae6ab788c5f9988 (patch) | |
| tree | 2408d7079092ee027481eb4975b764cc0bb31925 /src | |
| parent | 2e1280f865e818f4faae2eea6030a9ed55997f92 (diff) | |
| download | emacs-28a072fe30aaad1c25e122e93ae6ab788c5f9988.tar.gz emacs-28a072fe30aaad1c25e122e93ae6ab788c5f9988.zip | |
(realize_x_face): If C is not a single-byte character,
set the face's colors_copied_bitwise_p instead of the defaulted_p
members which have a different meaning.
(free_face_colors): Do nothing for a face whose colors have been
copied bitwise.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xfaces.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/xfaces.c b/src/xfaces.c index 324470bb7a1..08db995adc9 100644 --- a/src/xfaces.c +++ b/src/xfaces.c | |||
| @@ -1664,6 +1664,9 @@ free_face_colors (f, face) | |||
| 1664 | struct face *face; | 1664 | struct face *face; |
| 1665 | { | 1665 | { |
| 1666 | #ifdef HAVE_X_WINDOWS | 1666 | #ifdef HAVE_X_WINDOWS |
| 1667 | if (face->colors_copied_bitwise_p) | ||
| 1668 | return; | ||
| 1669 | |||
| 1667 | BLOCK_INPUT; | 1670 | BLOCK_INPUT; |
| 1668 | 1671 | ||
| 1669 | if (!face->foreground_defaulted_p) | 1672 | if (!face->foreground_defaulted_p) |
| @@ -6350,12 +6353,7 @@ realize_x_face (cache, attrs, c, base_face) | |||
| 6350 | face->gc = 0; | 6353 | face->gc = 0; |
| 6351 | 6354 | ||
| 6352 | /* Don't try to free the colors copied bitwise from BASE_FACE. */ | 6355 | /* Don't try to free the colors copied bitwise from BASE_FACE. */ |
| 6353 | face->foreground_defaulted_p = 1; | 6356 | face->colors_copied_bitwise_p = 1; |
| 6354 | face->background_defaulted_p = 1; | ||
| 6355 | face->underline_defaulted_p = 1; | ||
| 6356 | face->overline_color_defaulted_p = 1; | ||
| 6357 | face->strike_through_color_defaulted_p = 1; | ||
| 6358 | face->box_color_defaulted_p = 1; | ||
| 6359 | 6357 | ||
| 6360 | /* to force realize_face to load font */ | 6358 | /* to force realize_face to load font */ |
| 6361 | face->font = NULL; | 6359 | face->font = NULL; |