aboutsummaryrefslogtreecommitdiffstats
path: root/src/w32term.c
diff options
context:
space:
mode:
authorJason Rumney2009-01-01 02:06:27 +0000
committerJason Rumney2009-01-01 02:06:27 +0000
commitf9c34147fde3bdfdf36e27a582af163a6043de7a (patch)
tree12308637518159bf0626560a0025d97be6e18adf /src/w32term.c
parent174dc00c7415e479d698f4fa8ef037223d50de08 (diff)
downloademacs-f9c34147fde3bdfdf36e27a582af163a6043de7a.tar.gz
emacs-f9c34147fde3bdfdf36e27a582af163a6043de7a.zip
(x_new_font): Return font object, not fontset. (Bug#119)
Don't block input, as per earlier xterm.c changes.
Diffstat (limited to 'src/w32term.c')
-rw-r--r--src/w32term.c14
1 files changed, 3 insertions, 11 deletions
diff --git a/src/w32term.c b/src/w32term.c
index aab2d0d7473..f771427e548 100644
--- a/src/w32term.c
+++ b/src/w32term.c
@@ -5229,9 +5229,7 @@ x_new_font (f, font_object, fontset)
5229 if (FRAME_FONT (f) == font) 5229 if (FRAME_FONT (f) == font)
5230 /* This font is already set in frame F. There's nothing more to 5230 /* This font is already set in frame F. There's nothing more to
5231 do. */ 5231 do. */
5232 return fontset_name (fontset); 5232 return font_object;
5233
5234 BLOCK_INPUT;
5235 5233
5236 FRAME_FONT (f) = font; 5234 FRAME_FONT (f) = font;
5237 FRAME_BASELINE_OFFSET (f) = font->baseline_offset; 5235 FRAME_BASELINE_OFFSET (f) = font->baseline_offset;
@@ -5264,15 +5262,9 @@ x_new_font (f, font_object, fontset)
5264 x_set_window_size (f, 0, FRAME_COLS (f), FRAME_LINES (f)); 5262 x_set_window_size (f, 0, FRAME_COLS (f), FRAME_LINES (f));
5265 } 5263 }
5266 5264
5267#ifdef HAVE_X_I18N 5265 /* X version sets font of input methods here also. */
5268 if (FRAME_XIC (f)
5269 && (FRAME_XIC_STYLE (f) & (XIMPreeditPosition | XIMStatusArea)))
5270 xic_set_xfontset (f, SDATA (fontset_ascii (fontset)));
5271#endif
5272
5273 UNBLOCK_INPUT;
5274 5266
5275 return fontset_name (fontset); 5267 return font_object;
5276} 5268}
5277 5269
5278 5270