aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKarl Heuer1997-02-20 06:49:05 +0000
committerKarl Heuer1997-02-20 06:49:05 +0000
commit71025e5e1d69b9749c1c64668c69386f1f07f601 (patch)
tree58b50ffb101911321275ccdb34b49cd76c452650 /src
parentfb8106e8dd74ecfe5e558d28c3393598d8805f1b (diff)
downloademacs-71025e5e1d69b9749c1c64668c69386f1f07f601.tar.gz
emacs-71025e5e1d69b9749c1c64668c69386f1f07f601.zip
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.
Diffstat (limited to 'src')
-rw-r--r--src/frame.c13
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. */
22 22
23#include <stdio.h> 23#include <stdio.h>
24#include "lisp.h" 24#include "lisp.h"
25#include "charset.h"
26#ifdef HAVE_WINDOW_SYSTEM
27#include "fontset.h"
28#endif
25#include "frame.h" 29#include "frame.h"
26#include "termhooks.h" 30#include "termhooks.h"
27#include "window.h" 31#include "window.h"
@@ -360,6 +364,10 @@ make_frame (mini_p)
360 a newly-created, never-selected window. */ 364 a newly-created, never-selected window. */
361 XSETFASTINT (XWINDOW (f->selected_window)->use_time, ++window_select_count); 365 XSETFASTINT (XWINDOW (f->selected_window)->use_time, ++window_select_count);
362 366
367#ifdef HAVE_WINDOW_SYSTEM
368 f->fontset_data = alloc_fontset_data ();
369#endif
370
363 return f; 371 return f;
364} 372}
365 373
@@ -1152,6 +1160,11 @@ but if the second optional argument FORCE is non-nil, you may do so.")
1152 if (FRAME_DELETE_COST (f)) 1160 if (FRAME_DELETE_COST (f))
1153 free (FRAME_DELETE_COST (f)); 1161 free (FRAME_DELETE_COST (f));
1154 1162
1163#ifdef HAVE_WINDOW_SYSTEM
1164 /* Free all fontset data. */
1165 free_fontset_data (FRAME_FONTSET_DATA (f));
1166#endif
1167
1155 /* Since some events are handled at the interrupt level, we may get 1168 /* Since some events are handled at the interrupt level, we may get
1156 an event for f at any time; if we zero out the frame's display 1169 an event for f at any time; if we zero out the frame's display
1157 now, then we may trip up the event-handling code. Instead, we'll 1170 now, then we may trip up the event-handling code. Instead, we'll