aboutsummaryrefslogtreecommitdiffstats
path: root/src/w32term.c
diff options
context:
space:
mode:
authorJuanma Barranquero2014-03-27 18:34:22 +0100
committerJuanma Barranquero2014-03-27 18:34:22 +0100
commit1e757eb0a5bab2bdd26de8a6553ee5c2b2e2a381 (patch)
tree01db12aa0584e566f44f32c062a67f98ea836837 /src/w32term.c
parentb9b37dd04e6f60ef16738efe1b396a9e0a461d86 (diff)
parent0c4e715c98919593413a76a0ab1458b0d10ea287 (diff)
downloademacs-1e757eb0a5bab2bdd26de8a6553ee5c2b2e2a381.tar.gz
emacs-1e757eb0a5bab2bdd26de8a6553ee5c2b2e2a381.zip
Merge from emacs-24; up to 2014-03-24T03:06:35Z!dancol@dancol.org
Diffstat (limited to 'src/w32term.c')
-rw-r--r--src/w32term.c16
1 files changed, 12 insertions, 4 deletions
diff --git a/src/w32term.c b/src/w32term.c
index e8ec99e762d..256d7506a3a 100644
--- a/src/w32term.c
+++ b/src/w32term.c
@@ -2085,10 +2085,14 @@ x_draw_image_glyph_string (struct glyph_string *s)
2085 int x, y; 2085 int x, y;
2086 int box_line_hwidth = eabs (s->face->box_line_width); 2086 int box_line_hwidth = eabs (s->face->box_line_width);
2087 int box_line_vwidth = max (s->face->box_line_width, 0); 2087 int box_line_vwidth = max (s->face->box_line_width, 0);
2088 int height; 2088 int height, width;
2089 HBITMAP pixmap = 0; 2089 HBITMAP pixmap = 0;
2090 2090
2091 height = s->height - 2 * box_line_vwidth; 2091 height = s->height;
2092 if (s->slice.y == 0)
2093 height -= box_line_vwidth;
2094 if (s->slice.y + s->slice.height >= s->img->height)
2095 height -= box_line_vwidth;
2092 2096
2093 /* Fill background with face under the image. Do it only if row is 2097 /* Fill background with face under the image. Do it only if row is
2094 taller than image or if image has a clip mask to reduce 2098 taller than image or if image has a clip mask to reduce
@@ -2101,10 +2105,14 @@ x_draw_image_glyph_string (struct glyph_string *s)
2101 || s->img->pixmap == 0 2105 || s->img->pixmap == 0
2102 || s->width != s->background_width) 2106 || s->width != s->background_width)
2103 { 2107 {
2108 width = s->background_width;
2104 x = s->x; 2109 x = s->x;
2105 if (s->first_glyph->left_box_line_p 2110 if (s->first_glyph->left_box_line_p
2106 && s->slice.x == 0) 2111 && s->slice.x == 0)
2107 x += box_line_hwidth; 2112 {
2113 x += box_line_hwidth;
2114 width -= box_line_hwidth;
2115 }
2108 2116
2109 y = s->y; 2117 y = s->y;
2110 if (s->slice.y == 0) 2118 if (s->slice.y == 0)
@@ -2150,7 +2158,7 @@ x_draw_image_glyph_string (struct glyph_string *s)
2150 } 2158 }
2151 else 2159 else
2152#endif 2160#endif
2153 x_draw_glyph_string_bg_rect (s, x, y, s->background_width, height); 2161 x_draw_glyph_string_bg_rect (s, x, y, width, height);
2154 2162
2155 s->background_filled_p = 1; 2163 s->background_filled_p = 1;
2156 } 2164 }