emacs-diffs
[Top][All Lists]
Advanced

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

master 61a5829c1e: Fix glyphless glyph display on Haiku


From: Po Lu
Subject: master 61a5829c1e: Fix glyphless glyph display on Haiku
Date: Mon, 2 May 2022 23:18:37 -0400 (EDT)

branch: master
commit 61a5829c1ed4ec3d2e824da6048c58bf447d86b3
Author: Po Lu <luangruo@yahoo.com>
Commit: Po Lu <luangruo@yahoo.com>

    Fix glyphless glyph display on Haiku
    
    * src/haikuterm.c
    (haiku_draw_glyphless_glyph_string_foreground): Fix rectangle
    width.
---
 src/haikuterm.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/haikuterm.c b/src/haikuterm.c
index bdec82db7a..1481d95c08 100644
--- a/src/haikuterm.c
+++ b/src/haikuterm.c
@@ -1180,8 +1180,8 @@ haiku_draw_glyphless_glyph_string_foreground (struct 
glyph_string *s)
          BView_SetPenSize (FRAME_HAIKU_VIEW (s->f), 1);
          BView_StrokeRectangle (FRAME_HAIKU_VIEW (s->f),
                                 x, s->ybase - glyph->ascent,
-                                glyph->pixel_width - 1,
-                                glyph->ascent + glyph->descent - 1);
+                                glyph->pixel_width,
+                                glyph->ascent + glyph->descent);
        }
       x += glyph->pixel_width;
    }



reply via email to

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