emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 185c2f1904: Fix display of placeholder composite string on Haiku


From: Po Lu
Subject: master 185c2f1904: Fix display of placeholder composite string on Haiku
Date: Tue, 3 May 2022 20:48:21 -0400 (EDT)

branch: master
commit 185c2f1904c457ad043fe28cca915f508569c54a
Author: Po Lu <luangruo@yahoo.com>
Commit: Po Lu <luangruo@yahoo.com>

    Fix display of placeholder composite string on Haiku
    
    * src/haikuterm.c
    (haiku_draw_composite_glyph_string_foreground): Correct
    translation of XDrawRectangle.
---
 src/haikuterm.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/haikuterm.c b/src/haikuterm.c
index 1481d95c08..80c945c772 100644
--- a/src/haikuterm.c
+++ b/src/haikuterm.c
@@ -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)
     {



reply via email to

[Prev in Thread] Current Thread [Next in Thread]