]> code.delx.au - gnu-emacs/commitdiff
(x_draw_glyph_string): For stretch glyphs, don't call
authorChong Yidong <cyd@stupidchicken.com>
Sat, 15 Nov 2008 05:33:17 +0000 (05:33 +0000)
committerChong Yidong <cyd@stupidchicken.com>
Sat, 15 Nov 2008 05:33:17 +0000 (05:33 +0000)
x_draw_glyph_string_background.

src/w32term.c
src/xterm.c

index 69ebaf554f0c6fe53d73a3b8123ef23585049801..c99604205972c14113f040ea9a874490caa05291 100644 (file)
@@ -2248,7 +2248,10 @@ x_draw_glyph_string (s)
           {
             x_set_glyph_string_gc (next);
             x_set_glyph_string_clipping (next);
-            x_draw_glyph_string_background (next, 1);
+           if (next->first_glyph->type == STRETCH_GLYPH)
+             x_draw_stretch_glyph_string (next);
+           else
+             x_draw_glyph_string_background (next, 1);
             next->num_clips = 0;
           }
     }
index 7f0c0b5aba2c56204509a6c8183e44ec038054ba..4d74910fec7fe21e61dbb45b69dc82eda8c802fe 100644 (file)
@@ -2660,7 +2660,10 @@ x_draw_glyph_string (s)
          {
            x_set_glyph_string_gc (next);
            x_set_glyph_string_clipping (next);
-           x_draw_glyph_string_background (next, 1);
+           if (next->first_glyph->type == STRETCH_GLYPH)
+             x_draw_stretch_glyph_string (next);
+           else
+             x_draw_glyph_string_background (next, 1);
            next->num_clips = 0;
          }
     }