diff options
| author | Kenichi Handa | 2002-05-13 12:09:57 +0000 |
|---|---|---|
| committer | Kenichi Handa | 2002-05-13 12:09:57 +0000 |
| commit | 27e20b2f0591536559b4f8dff5d684f2a27d1f76 (patch) | |
| tree | 63b17408550f00c781707b690750de8e307fe3df /src | |
| parent | 56b9c6d5e7d4dd821a56dac28e5b5d3ab2eeb706 (diff) | |
| download | emacs-27e20b2f0591536559b4f8dff5d684f2a27d1f76.tar.gz emacs-27e20b2f0591536559b4f8dff5d684f2a27d1f76.zip | |
(free_realized_fontsets): Call Fclear_face_cache instead
of calling free_reazlied_face.
Diffstat (limited to 'src')
| -rw-r--r-- | src/fontset.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/fontset.c b/src/fontset.c index 842aad5d6cf..2caa087c33b 100644 --- a/src/fontset.c +++ b/src/fontset.c | |||
| @@ -756,6 +756,11 @@ free_realized_fontsets (base) | |||
| 756 | { | 756 | { |
| 757 | int id; | 757 | int id; |
| 758 | 758 | ||
| 759 | #if 0 | ||
| 760 | /* For the moment, this doesn't work because free_realized_face | ||
| 761 | doesn't remove FACE from a cache. Until we find a solution, we | ||
| 762 | suppress this code, and simply use Fclear_face_cache even though | ||
| 763 | that is not efficient. */ | ||
| 759 | BLOCK_INPUT; | 764 | BLOCK_INPUT; |
| 760 | for (id = 0; id < ASIZE (Vfontset_table); id++) | 765 | for (id = 0; id < ASIZE (Vfontset_table); id++) |
| 761 | { | 766 | { |
| @@ -778,6 +783,9 @@ free_realized_fontsets (base) | |||
| 778 | } | 783 | } |
| 779 | } | 784 | } |
| 780 | UNBLOCK_INPUT; | 785 | UNBLOCK_INPUT; |
| 786 | #else /* not 0 */ | ||
| 787 | Fclear_face_cache (Qt); | ||
| 788 | #endif /* not 0 */ | ||
| 781 | } | 789 | } |
| 782 | 790 | ||
| 783 | 791 | ||