comparison src/widget.c @ 6766:492ff2e2ddb7

(get_default_char_pixel_size): Use line_height field.
author Richard M. Stallman <rms@gnu.org>
date Sat, 09 Apr 1994 06:32:48 +0000
parents 1a11d0ceb11b
children 67bb36e8e602
comparison
equal deleted inserted replaced
6765:9be1670e9032 6766:492ff2e2ddb7
167 int* pixel_width; 167 int* pixel_width;
168 int* pixel_height; 168 int* pixel_height;
169 { 169 {
170 struct frame* f = ew->emacs_frame.frame; 170 struct frame* f = ew->emacs_frame.frame;
171 *pixel_width = FONT_WIDTH (f->display.x->font); 171 *pixel_width = FONT_WIDTH (f->display.x->font);
172 *pixel_height = FONT_HEIGHT (f->display.x->font); 172 *pixel_height = f->display.x->line_height;
173 } 173 }
174 174
175 static void 175 static void
176 pixel_to_char_size (ew, pixel_width, pixel_height, char_width, char_height) 176 pixel_to_char_size (ew, pixel_width, pixel_height, char_width, char_height)
177 EmacsFrame ew; 177 EmacsFrame ew;