diff options
| author | Dmitry Antipov | 2013-08-13 12:18:11 +0400 |
|---|---|---|
| committer | Dmitry Antipov | 2013-08-13 12:18:11 +0400 |
| commit | a45543bc75e845c9217130c65ddd00a81c18ffd1 (patch) | |
| tree | 2d09d300e4d7c211389215e2c991c57162689d47 /src/xfaces.c | |
| parent | ae966a860afc2d7ebbb1e96a68c2df3cfbdc2b81 (diff) | |
| download | emacs-a45543bc75e845c9217130c65ddd00a81c18ffd1.tar.gz emacs-a45543bc75e845c9217130c65ddd00a81c18ffd1.zip | |
* font.c (clear_font_cache): New function, stripped from...
(Fclear_font_cache): ...here, which now uses the function
above. Adjust comment.
* font.h (clear_font_cache): Add prototype.
* xfaces.c (clear_face_cache): Use clear_font_cache.
Diffstat (limited to 'src/xfaces.c')
| -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 acd2d2b1116..b76f9d24180 100644 --- a/src/xfaces.c +++ b/src/xfaces.c | |||
| @@ -759,11 +759,6 @@ clear_face_cache (int clear_fonts_p) | |||
| 759 | if (clear_fonts_p | 759 | if (clear_fonts_p |
| 760 | || ++clear_font_table_count == CLEAR_FONT_TABLE_COUNT) | 760 | || ++clear_font_table_count == CLEAR_FONT_TABLE_COUNT) |
| 761 | { | 761 | { |
| 762 | #if 0 | ||
| 763 | /* Not yet implemented. */ | ||
| 764 | clear_font_cache (frame); | ||
| 765 | #endif | ||
| 766 | |||
| 767 | /* From time to time see if we can unload some fonts. This also | 762 | /* From time to time see if we can unload some fonts. This also |
| 768 | frees all realized faces on all frames. Fonts needed by | 763 | frees all realized faces on all frames. Fonts needed by |
| 769 | faces will be loaded again when faces are realized again. */ | 764 | faces will be loaded again when faces are realized again. */ |
| @@ -774,7 +769,10 @@ clear_face_cache (int clear_fonts_p) | |||
| 774 | struct frame *f = XFRAME (frame); | 769 | struct frame *f = XFRAME (frame); |
| 775 | if (FRAME_WINDOW_P (f) | 770 | if (FRAME_WINDOW_P (f) |
| 776 | && FRAME_X_DISPLAY_INFO (f)->n_fonts > CLEAR_FONT_TABLE_NFONTS) | 771 | && FRAME_X_DISPLAY_INFO (f)->n_fonts > CLEAR_FONT_TABLE_NFONTS) |
| 777 | free_all_realized_faces (frame); | 772 | { |
| 773 | clear_font_cache (f); | ||
| 774 | free_all_realized_faces (frame); | ||
| 775 | } | ||
| 778 | } | 776 | } |
| 779 | } | 777 | } |
| 780 | else | 778 | else |