diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/xterm.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/xterm.c b/src/xterm.c index addaf5b2635..078dc2f1b00 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -896,10 +896,10 @@ dumpglyphs (f, left, top, gp, n, hl, just_foreground, cmpcharp) | |||
| 896 | 896 | ||
| 897 | if (!cmpcharp) | 897 | if (!cmpcharp) |
| 898 | { | 898 | { |
| 899 | if (require_clipping) | 899 | if (require_clipping || FONT_WIDTH (font) != glyph_width) |
| 900 | for (i = 0; i < len; i++) | 900 | for (i = 0; i < len; i++) |
| 901 | { | 901 | { |
| 902 | if (i > 0) | 902 | if (require_clipping && i > 0) |
| 903 | XSetClipOrigin (FRAME_X_DISPLAY (f), gc, | 903 | XSetClipOrigin (FRAME_X_DISPLAY (f), gc, |
| 904 | glyph_width * i, 0); | 904 | glyph_width * i, 0); |
| 905 | if (background_filled) | 905 | if (background_filled) |
| @@ -5096,9 +5096,9 @@ x_connection_closed (display, error_message) | |||
| 5096 | 5096 | ||
| 5097 | /* Indicate that this display is dead. */ | 5097 | /* Indicate that this display is dead. */ |
| 5098 | 5098 | ||
| 5099 | #ifdef USE_X_TOOLKIT | 5099 | #ifdef USE_X_TOOLKIT |
| 5100 | XtCloseDisplay (display); | 5100 | XtCloseDisplay (display); |
| 5101 | #endif | 5101 | #endif |
| 5102 | 5102 | ||
| 5103 | dpyinfo->display = 0; | 5103 | dpyinfo->display = 0; |
| 5104 | 5104 | ||
| @@ -6416,7 +6416,7 @@ x_load_font (f, fontname, size) | |||
| 6416 | unsigned long value; | 6416 | unsigned long value; |
| 6417 | 6417 | ||
| 6418 | if (!NILP (font_names)) | 6418 | if (!NILP (font_names)) |
| 6419 | fontname = XSTRING (XCONS (font_names)->car)->data; | 6419 | fontname = (char *) XSTRING (XCONS (font_names)->car)->data; |
| 6420 | 6420 | ||
| 6421 | BLOCK_INPUT; | 6421 | BLOCK_INPUT; |
| 6422 | font = (XFontStruct *) XLoadQueryFont (FRAME_X_DISPLAY (f), fontname); | 6422 | font = (XFontStruct *) XLoadQueryFont (FRAME_X_DISPLAY (f), fontname); |