diff options
| author | Kenichi Handa | 1997-05-16 00:42:53 +0000 |
|---|---|---|
| committer | Kenichi Handa | 1997-05-16 00:42:53 +0000 |
| commit | f613a4c8568065d8d10c78f7bc545f287652d5ba (patch) | |
| tree | 12d02f28dc66ff6b8c3b3263c38c518f7d238de5 /src/xterm.c | |
| parent | a81ed99ed0817219aa1f4596c3b9ea9daa838ec3 (diff) | |
| download | emacs-f613a4c8568065d8d10c78f7bc545f287652d5ba.tar.gz emacs-f613a4c8568065d8d10c78f7bc545f287652d5ba.zip | |
(dumpglyphs): Draw glyphs one by one if the font for
them is narrower than required.
(x_connection_closed): Put # at the beginning of line.
(x_load_font): Cast to (char *) before assigning to FONTNAME.
Diffstat (limited to 'src/xterm.c')
| -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); |