diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/x-list-font.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/x-list-font.c b/src/x-list-font.c index 077a33ef7d1..861a61dac81 100644 --- a/src/x-list-font.c +++ b/src/x-list-font.c | |||
| @@ -25,7 +25,7 @@ the WIDTH times as wide as FACE on FRAME.") | |||
| 25 | int size, cols; | 25 | int size, cols; |
| 26 | int maxnames; | 26 | int maxnames; |
| 27 | 27 | ||
| 28 | check_x (); | 28 | (*check_window_system_func) (); |
| 29 | CHECK_STRING (pattern, 0); | 29 | CHECK_STRING (pattern, 0); |
| 30 | if (!NILP (face)) | 30 | if (!NILP (face)) |
| 31 | CHECK_SYMBOL (face, 1); | 31 | CHECK_SYMBOL (face, 1); |
| @@ -50,7 +50,7 @@ the WIDTH times as wide as FACE on FRAME.") | |||
| 50 | CHECK_LIVE_FRAME (frame, 0); | 50 | CHECK_LIVE_FRAME (frame, 0); |
| 51 | f = XFRAME (frame); | 51 | f = XFRAME (frame); |
| 52 | } | 52 | } |
| 53 | if (! FRAME_X_P (f)) | 53 | if (! FRAME_WINDOW_P (f)) |
| 54 | { | 54 | { |
| 55 | /* Perhaps we have not yet created any frame. */ | 55 | /* Perhaps we have not yet created any frame. */ |
| 56 | f = NULL; | 56 | f = NULL; |
| @@ -70,9 +70,9 @@ the WIDTH times as wide as FACE on FRAME.") | |||
| 70 | if (face_id < 0 || face_id >= FRAME_N_PARAM_FACES (f) | 70 | if (face_id < 0 || face_id >= FRAME_N_PARAM_FACES (f) |
| 71 | || FRAME_PARAM_FACES (f) [face_id] == 0 | 71 | || FRAME_PARAM_FACES (f) [face_id] == 0 |
| 72 | || FRAME_PARAM_FACES (f) [face_id]->font == (XFontStruct *) (~0)) | 72 | || FRAME_PARAM_FACES (f) [face_id]->font == (XFontStruct *) (~0)) |
| 73 | size = f->output_data.x->font->max_bounds.width; | 73 | size = FONT_WIDTH (FRAME_FONT (f)); |
| 74 | else | 74 | else |
| 75 | size = FRAME_PARAM_FACES (f) [face_id]->font->max_bounds.width; | 75 | size = FONT_WIDTH (FRAME_PARAM_FACES (f) [face_id]->font); |
| 76 | 76 | ||
| 77 | if (!NILP (width)) | 77 | if (!NILP (width)) |
| 78 | size *= XINT (width); | 78 | size *= XINT (width); |
| @@ -81,7 +81,7 @@ the WIDTH times as wide as FACE on FRAME.") | |||
| 81 | { | 81 | { |
| 82 | Lisp_Object args[2]; | 82 | Lisp_Object args[2]; |
| 83 | 83 | ||
| 84 | args[0] = x_list_fonts (f, pattern, size, maxnames); | 84 | args[0] = (*list_fonts_func) (f, pattern, size, maxnames); |
| 85 | if (f == NULL) | 85 | if (f == NULL) |
| 86 | /* We don't have to check fontsets. */ | 86 | /* We don't have to check fontsets. */ |
| 87 | return args[0]; | 87 | return args[0]; |