diff options
author | Dmitry Antipov <dmantipov@yandex.ru> | 2013-08-13 12:18:11 +0400 |
---|---|---|
committer | Dmitry Antipov <dmantipov@yandex.ru> | 2013-08-13 12:18:11 +0400 |
commit | a45543bc75e845c9217130c65ddd00a81c18ffd1 (patch) | |
tree | 2d09d300e4d7c211389215e2c991c57162689d47 /src/xfaces.c | |
parent | ae966a860afc2d7ebbb1e96a68c2df3cfbdc2b81 (diff) | |
download | emacs-a45543bc75e845c9217130c65ddd00a81c18ffd1.tar.gz |
* 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) if (clear_fonts_p || ++clear_font_table_count == CLEAR_FONT_TABLE_COUNT) { -#if 0 - /* Not yet implemented. */ - clear_font_cache (frame); -#endif - /* From time to time see if we can unload some fonts. This also frees all realized faces on all frames. Fonts needed by faces will be loaded again when faces are realized again. */ @@ -774,7 +769,10 @@ clear_face_cache (int clear_fonts_p) struct frame *f = XFRAME (frame); if (FRAME_WINDOW_P (f) && FRAME_X_DISPLAY_INFO (f)->n_fonts > CLEAR_FONT_TABLE_NFONTS) - free_all_realized_faces (frame); + { + clear_font_cache (f); + free_all_realized_faces (frame); + } } } else |