diff options
author | Karl Heuer <kwzh@gnu.org> | 1997-02-20 06:49:05 +0000 |
---|---|---|
committer | Karl Heuer <kwzh@gnu.org> | 1997-02-20 06:49:05 +0000 |
commit | efef193356af38a2bcd468faa16bcc09bd47f123 (patch) | |
tree | 483b7f8abf3fd587bac43e7dc0d8d93fdef62c87 | |
parent | dde84fe84eb1402d26edc6a471e6c8e6a75da876 (diff) | |
download | emacs-efef193356af38a2bcd468faa16bcc09bd47f123.tar.gz |
Include "charset.h"
[HAVE_WINDOW_SYSTEM]: Include fontset.h.
(make_frame): Allocate member `fontset_data' of the struct frame.
(Fdelete_frame): Free the area for the member.
-rw-r--r-- | src/frame.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/frame.c b/src/frame.c index 937336c4873..9c3e5241f61 100644 --- a/src/frame.c +++ b/src/frame.c @@ -22,6 +22,10 @@ Boston, MA 02111-1307, USA. */ #include <stdio.h> #include "lisp.h" +#include "charset.h" +#ifdef HAVE_WINDOW_SYSTEM +#include "fontset.h" +#endif #include "frame.h" #include "termhooks.h" #include "window.h" @@ -360,6 +364,10 @@ make_frame (mini_p) a newly-created, never-selected window. */ XSETFASTINT (XWINDOW (f->selected_window)->use_time, ++window_select_count); +#ifdef HAVE_WINDOW_SYSTEM + f->fontset_data = alloc_fontset_data (); +#endif + return f; } @@ -1152,6 +1160,11 @@ but if the second optional argument FORCE is non-nil, you may do so.") if (FRAME_DELETE_COST (f)) free (FRAME_DELETE_COST (f)); +#ifdef HAVE_WINDOW_SYSTEM + /* Free all fontset data. */ + free_fontset_data (FRAME_FONTSET_DATA (f)); +#endif + /* Since some events are handled at the interrupt level, we may get an event for f at any time; if we zero out the frame's display now, then we may trip up the event-handling code. Instead, we'll |