]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix display of placeholder composite string on Haiku
authorPo Lu <luangruo@yahoo.com>
Wed, 4 May 2022 00:47:52 +0000 (00:47 +0000)
committerPo Lu <luangruo@yahoo.com>
Wed, 4 May 2022 00:47:52 +0000 (00:47 +0000)
* src/haikuterm.c
(haiku_draw_composite_glyph_string_foreground): Correct
translation of XDrawRectangle.

src/haikuterm.c

index 1481d95c0879b6983841277c63f5e4cf540ed8d6..80c945c7724493fe0573221e6437a6cc2d6bd675 100644 (file)
@@ -1351,14 +1351,14 @@ haiku_draw_composite_glyph_string_foreground (struct glyph_string *s)
 
   /* Draw a rectangle for the composition if the font for the very
      first character of the composition could not be loaded.  */
-
   if (s->font_not_found_p && !s->cmp_from)
     {
       if (s->hl == DRAW_CURSOR)
        BView_SetHighColor (view, FRAME_OUTPUT_DATA (s->f)->cursor_fg);
       else
        BView_SetHighColor (view, s->face->foreground);
-      BView_StrokeRectangle (view, s->x, s->y, s->width - 1, s->height - 1);
+      BView_StrokeRectangle (view, s->x, s->y,
+                            s->width, s->height);
     }
   else if (!s->first_glyph->u.cmp.automatic)
     {