diff options
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 | ||