diff options
| author | Kenichi Handa | 2008-07-09 00:32:22 +0000 |
|---|---|---|
| committer | Kenichi Handa | 2008-07-09 00:32:22 +0000 |
| commit | ec6174cdaf99af1f91f69ba4aa516cfcc074fd70 (patch) | |
| tree | f53a309b7810179e4c374443f840b8f0163123fb /src | |
| parent | 0fce2b40e3db5539d57e136907218dd3ea4ba1ee (diff) | |
| download | emacs-ec6174cdaf99af1f91f69ba4aa516cfcc074fd70.tar.gz emacs-ec6174cdaf99af1f91f69ba4aa516cfcc074fd70.zip | |
(w32font_open): Adjust it for the change of
font_make_object.
(w32font_open_internal): Don't set properties of font_object here.
Diffstat (limited to 'src')
| -rw-r--r-- | src/w32font.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/w32font.c b/src/w32font.c index b6381129739..7be72bb49a8 100644 --- a/src/w32font.c +++ b/src/w32font.c | |||
| @@ -236,7 +236,8 @@ w32font_open (f, font_entity, pixel_size) | |||
| 236 | { | 236 | { |
| 237 | Lisp_Object font_object; | 237 | Lisp_Object font_object; |
| 238 | 238 | ||
| 239 | font_object = font_make_object (VECSIZE (struct w32font_info)); | 239 | font_object = font_make_object (VECSIZE (struct w32font_info), |
| 240 | font_entity, pixel_size); | ||
| 240 | 241 | ||
| 241 | if (!w32font_open_internal (f, font_entity, pixel_size, font_object)) | 242 | if (!w32font_open_internal (f, font_entity, pixel_size, font_object)) |
| 242 | { | 243 | { |
| @@ -802,11 +803,6 @@ w32font_open_internal (f, font_entity, pixel_size, font_object) | |||
| 802 | if (!font) | 803 | if (!font) |
| 803 | return 0; | 804 | return 0; |
| 804 | 805 | ||
| 805 | /* Copy from font entity. */ | ||
| 806 | for (i = 0; i < FONT_ENTITY_MAX; i++) | ||
| 807 | ASET (font_object, i, AREF (font_entity, i)); | ||
| 808 | ASET (font_object, FONT_SIZE_INDEX, make_number (pixel_size)); | ||
| 809 | |||
| 810 | bzero (&logfont, sizeof (logfont)); | 806 | bzero (&logfont, sizeof (logfont)); |
| 811 | fill_in_logfont (f, &logfont, font_entity); | 807 | fill_in_logfont (f, &logfont, font_entity); |
| 812 | 808 | ||