aboutsummaryrefslogtreecommitdiffstats
path: root/src/xterm.c
diff options
context:
space:
mode:
authorJuanma Barranquero2014-04-02 17:14:50 +0200
committerJuanma Barranquero2014-04-02 17:14:50 +0200
commit09aba8153a8297e415477dbfa9a8c7e999fb3457 (patch)
tree1b15e57f5cb0d6fb4cec8e2ca03747d9e7abf163 /src/xterm.c
parentaf1a69f4d17a482c359d98c00ef86fac835b5fac (diff)
parentffcd5669d6a71dd9450a9c45b2ea67d3ddc7c988 (diff)
downloademacs-09aba8153a8297e415477dbfa9a8c7e999fb3457.tar.gz
emacs-09aba8153a8297e415477dbfa9a8c7e999fb3457.zip
Merge from emacs-24; up to 2014-03-28T01:39:30Z!rgm@gnu.org
Diffstat (limited to 'src/xterm.c')
-rw-r--r--src/xterm.c32
1 files changed, 16 insertions, 16 deletions
diff --git a/src/xterm.c b/src/xterm.c
index 1c0aea01f6e..b0d64dfeb7f 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -2399,15 +2399,19 @@ x_draw_image_glyph_string (struct glyph_string *s)
2399 { 2399 {
2400 int x = s->x; 2400 int x = s->x;
2401 int y = s->y; 2401 int y = s->y;
2402 int width = s->background_width;
2402 2403
2403 if (s->first_glyph->left_box_line_p 2404 if (s->first_glyph->left_box_line_p
2404 && s->slice.x == 0) 2405 && s->slice.x == 0)
2405 x += box_line_hwidth; 2406 {
2407 x += box_line_hwidth;
2408 width -= box_line_hwidth;
2409 }
2406 2410
2407 if (s->slice.y == 0) 2411 if (s->slice.y == 0)
2408 y += box_line_vwidth; 2412 y += box_line_vwidth;
2409 2413
2410 x_draw_glyph_string_bg_rect (s, x, y, s->background_width, height); 2414 x_draw_glyph_string_bg_rect (s, x, y, width, height);
2411 } 2415 }
2412 2416
2413 s->background_filled_p = 1; 2417 s->background_filled_p = 1;
@@ -7775,20 +7779,16 @@ x_new_font (struct frame *f, Lisp_Object font_object, int fontset)
7775 7779
7776 compute_fringe_widths (f, 1); 7780 compute_fringe_widths (f, 1);
7777 7781
7782 /* Compute character columns occupied by scrollbar.
7783
7784 Don't do things differently for non-toolkit scrollbars
7785 (Bug#17163). */
7778 unit = FRAME_COLUMN_WIDTH (f); 7786 unit = FRAME_COLUMN_WIDTH (f);
7779#ifdef USE_TOOLKIT_SCROLL_BARS 7787 if (FRAME_CONFIG_SCROLL_BAR_WIDTH (f) > 0)
7780 /* The width of a toolkit scrollbar does not change with the new 7788 FRAME_CONFIG_SCROLL_BAR_COLS (f)
7781 font but we have to calculate the number of columns it occupies 7789 = (FRAME_CONFIG_SCROLL_BAR_WIDTH (f) + unit - 1) / unit;
7782 anew. */ 7790 else
7783 FRAME_CONFIG_SCROLL_BAR_COLS (f) 7791 FRAME_CONFIG_SCROLL_BAR_COLS (f) = (14 + unit - 1) / unit;
7784 = (FRAME_CONFIG_SCROLL_BAR_WIDTH (f) + unit - 1) / unit;
7785#else
7786 /* The width of a non-toolkit scrollbar is at least 14 pixels and a
7787 multiple of the frame's character width. */
7788 FRAME_CONFIG_SCROLL_BAR_COLS (f) = (14 + unit - 1) / unit;
7789 FRAME_CONFIG_SCROLL_BAR_WIDTH (f)
7790 = FRAME_CONFIG_SCROLL_BAR_COLS (f) * unit;
7791#endif
7792 7792
7793 if (FRAME_X_WINDOW (f) != 0) 7793 if (FRAME_X_WINDOW (f) != 0)
7794 { 7794 {
@@ -7994,7 +7994,7 @@ xim_close_dpy (struct x_display_info *dpyinfo)
7994 { 7994 {
7995#ifdef HAVE_X11R6_XIM 7995#ifdef HAVE_X11R6_XIM
7996 struct xim_inst_t *xim_inst = dpyinfo->xim_callback_data; 7996 struct xim_inst_t *xim_inst = dpyinfo->xim_callback_data;
7997 7997
7998 if (dpyinfo->display) 7998 if (dpyinfo->display)
7999 { 7999 {
8000 Bool ret = XUnregisterIMInstantiateCallback 8000 Bool ret = XUnregisterIMInstantiateCallback