From 61a5829c1ed4ec3d2e824da6048c58bf447d86b3 Mon Sep 17 00:00:00 2001 From: Po Lu Date: Tue, 3 May 2022 03:18:11 +0000 Subject: [PATCH] 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 bdec82db7ab..1481d95c087 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; } -- 2.39.5