diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/xfaces.c | 37 |
1 files changed, 8 insertions, 29 deletions
diff --git a/src/xfaces.c b/src/xfaces.c index d176edefd1f..754cf867812 100644 --- a/src/xfaces.c +++ b/src/xfaces.c | |||
| @@ -228,10 +228,6 @@ Boston, MA 02111-1307, USA. */ | |||
| 228 | #define check_x check_w32 | 228 | #define check_x check_w32 |
| 229 | #define x_list_fonts w32_list_fonts | 229 | #define x_list_fonts w32_list_fonts |
| 230 | #define GCGraphicsExposures 0 | 230 | #define GCGraphicsExposures 0 |
| 231 | /* For historic reasons, FONT_WIDTH refers to average width on W32, | ||
| 232 | not maximum as on X. Redefine here. */ | ||
| 233 | #undef FONT_WIDTH | ||
| 234 | #define FONT_WIDTH FONT_MAX_WIDTH | ||
| 235 | #endif /* WINDOWSNT */ | 231 | #endif /* WINDOWSNT */ |
| 236 | 232 | ||
| 237 | #ifdef MAC_OS | 233 | #ifdef MAC_OS |
| @@ -1215,30 +1211,6 @@ load_pixmap (f, name, w_ptr, h_ptr) | |||
| 1215 | 1211 | ||
| 1216 | 1212 | ||
| 1217 | /*********************************************************************** | 1213 | /*********************************************************************** |
| 1218 | Minimum font bounds | ||
| 1219 | ***********************************************************************/ | ||
| 1220 | |||
| 1221 | #ifdef HAVE_WINDOW_SYSTEM | ||
| 1222 | |||
| 1223 | /* Update the line_height of frame F. Return non-zero if line height | ||
| 1224 | changes. */ | ||
| 1225 | |||
| 1226 | int | ||
| 1227 | frame_update_line_height (f) | ||
| 1228 | struct frame *f; | ||
| 1229 | { | ||
| 1230 | int line_height, changed_p; | ||
| 1231 | |||
| 1232 | line_height = FONT_HEIGHT (FRAME_FONT (f)); | ||
| 1233 | changed_p = line_height != FRAME_LINE_HEIGHT (f); | ||
| 1234 | FRAME_LINE_HEIGHT (f) = line_height; | ||
| 1235 | return changed_p; | ||
| 1236 | } | ||
| 1237 | |||
| 1238 | #endif /* HAVE_WINDOW_SYSTEM */ | ||
| 1239 | |||
| 1240 | |||
| 1241 | /*********************************************************************** | ||
| 1242 | Fonts | 1214 | Fonts |
| 1243 | ***********************************************************************/ | 1215 | ***********************************************************************/ |
| 1244 | 1216 | ||
| @@ -2963,10 +2935,17 @@ the WIDTH times as wide as FACE on FRAME. */) | |||
| 2963 | ? NULL | 2935 | ? NULL |
| 2964 | : FACE_FROM_ID (f, face_id)); | 2936 | : FACE_FROM_ID (f, face_id)); |
| 2965 | 2937 | ||
| 2938 | #ifdef WINDOWSNT | ||
| 2939 | /* For historic reasons, FONT_WIDTH refers to average width on W32, | ||
| 2940 | not maximum as on X. Redefine here. */ | ||
| 2941 | #undef FONT_WIDTH | ||
| 2942 | #define FONT_WIDTH FONT_MAX_WIDTH | ||
| 2943 | #endif | ||
| 2944 | |||
| 2966 | if (face && face->font) | 2945 | if (face && face->font) |
| 2967 | size = FONT_WIDTH (face->font); | 2946 | size = FONT_WIDTH (face->font); |
| 2968 | else | 2947 | else |
| 2969 | size = FONT_WIDTH (FRAME_FONT (f)); | 2948 | size = FONT_WIDTH (FRAME_FONT (f)); /* FRAME_COLUMN_WIDTH (f) */ |
| 2970 | 2949 | ||
| 2971 | if (!NILP (width)) | 2950 | if (!NILP (width)) |
| 2972 | size *= XINT (width); | 2951 | size *= XINT (width); |